Shortcode Dictionary

Shortcode Dictionary

If you wish to design and use our shortcode manually on any wordpress page or inside a page builder ‘shortcode’ module if they offer it, you can use this section to pick, choose, and design your parameters.  This content is available through our classic editor ‘cart’ icon method as well for more visual building if you prefer.  We offer many ways to choose your shortcode.

 

Main Store  Shortcode
[ec_store menuid=”1″ submenuid=’2′ subsubmenuid=’3′ manufacturerid=’4′ groupid=’5′ modelnumber=’XYZ’ language=’EN’]
This shortcode is the main store system and allows you to show a grid of products or a specific category of product.  This is most commonly used shortcode and you can also place a single specific product on the page using the model number parameter.

a. menuid – Level 1 menu items
b. submenuid – Level 2 menu items
c. subsubmenuid – Level 3 menu items
d. manufacturerid – Manufacturer item
e. groupid – Category item
f. modelnumber – Product model number
g. language – WPML use only, sets the store display to a specific language

 

 

 

Categories Grid Shortcode
[ec_categories menuid=”1″ submenuid=’2′ subsubmenuid=’3′ manufacturerid=’4′ groupid=’5′ modelnumber=’XYZ’ language=’en’]
This will show a list of categories for products that are included or category ids included in the shortcode. Categories link into a list of products.

a. menuid – Level 1 menu items
b. submenuid – Level 2 menu items
c. subsubmenuid – Level 3 menu items
d. manufacturerid – Manufacturer item
e. groupid – Category item
f. modelnumber – Reference to product by model number
g. language – WPML use only, sets the store display to a specific language

 

 

 

Categories Grid Parent/Child Shortcode
[ec_category_view parentid=”0″ columns=”3″]
This shortcode is a good usage if you wish to show a category grid of all your categories and have a parent/child relationship where the categories can lead down to another level of subcategories and vice-versa.

a.  parentid – parent id if this is a subcategory and leads upward
b.  columns – number of columns to display in grid

 

 

 

Store Table List Shortcode
[ec_store_table productid=”” menuid=”” submenuid=”” subsubmenuid=”” categoryid=”” labels=”SKU,Product Name,Price,More” columns=”model_number,title,price,details_link” view_details=”view more”]
This shortcode can display products in a tabular view along with csutomized columns and button view properties for very flexible configurations.  Choose no specific items to be listed and all products will be shown.

a.  productid – choose a specific product id to be listed
b.  menuid, submenuid, subsubsmenuid – allows you to choose a specific menu of product to be listed
c.  categoryid – choose a specific category of products to be listed
d.  labels – customize the top labels of your table
e.  columns – choose specific columns of data to be shown in table (using database ec_products).  Also, details_link will display a product details link in a column, no header label needed.
f.  view_details button – This is what wording you wish to use for your last ‘text link’ button.

 

 

 

Shopping Cart/Checkout Shortcode
[ec_cart language=’EN’]
This is the core shopping cart page and should usually simply contain [ec_cart] on it and will display the entire shopping cart and checkout system.

a. language – WPML use only, sets the cart display to a specific language

 

 

 

 

 

Customer Account Shortcode
[ec_account language=’EN’ redirect=’https://yoursite.com/membership-page’]
This is the core customer account page and should usually contain just [ec_account] on it and will display login and customer account functions such as previous order history, billing/shipping address updates, password and email modifications.

a. language – WPML use only, sets the account display to a specific language
b. redirect – This is used on login if you wish to send a user to a custom page after login, good for membership content login pages.

 

 

Single Product Display Shortcode

[ec_product productids=”1,2,3,4…” cols_desktop=”4″ columns=”3″ cols_tablet=”3″ cols_mobile=”2″ cols_mobile_small=”1″ margin=’45px’ width=’175px’ minheight=’375px’ imagew=’150px’ imageh=’140px’ style=’1′]
The single product display shortcode lets you individually select a product and display it on a page.  This is the same product display as our store grid system and not the product details, but rather an overview.  Userful for sliders or other designs which require an intro to the product.  Multiple products may be selected as well.

  • model_number – product reference by model number
  • productid – product reference by productid (preferred) (multi-select with a comma separated list of IDs)
  • columns – sets the width of the product display
  • cols_desktop – sets value of columns on desktops 1-5
  • cols_tablet – sets value of columns on tablets 1-5
  • cols_mobile – sets value of columns on mobile 1-5
  • cols_mobile_small – sets value of columns on small mobile 1-5
  • margin – spacing between products
  • width – width of the display
  • minheight – minheight of the product display
  • imagew – sets the image width
  • imageh – sets the image height
  • style – we offer styles 1, 2, and 3, which you can try to see what they look like.

 

 

Add to Cart Product Button Shortcode
[ec_addtocart productid=’1′]
This shortcode allows you to design your own product displays and product pages and connect the system with just our add to cart button.  It also will add any option sets you have attached to the product so you can do complex product options.

a. productid – references the product that should display an add to cart button (includes options if applicable).

Alternative URL Method:
You can also use your own buttons to ‘add to cart’ and place items into a shopping cart using URL variables.
Example:  https://www.yourwebsite.com/cart/?ec_add_to_cart=SKU  (Replace with url to your shopping cart AND the SKU with your actual product SKU).

Note:  This is a great tool if you design your own product page, but URL method will only work if you do not have option sets.

 

 

 

 

Cart Contents Shortcode
[ec_cartdisplay]
This shortcode allows you to display only the cart contents either on a page or page builder section that you may wish customers to see.  CSS can be used to design or target this to display however you like the contents.

 

 

 

 

 

Membership or Secured Content Shortcode
[ec_membership productid=’1,2,3′ userroles=’shopper,admin]member content here[/ec_membership]
a. productid – references products that must be purchased to see the membership content, ids seperated by a comma.
b. userroles – references custom user roles setup in the EasyCart accounts (edit account and add user roles as needed).

[ec_membership_alt productid=’1,2,3′ userroles=’shopper,admin] – non-member content here [/ec_membership_alt]
a. productid – references products that must be purchased to see the membership content, ids seperated by a comma.
b. userroles – references custom user roles setup in the EasyCart accounts (edit account and add user roles as needed).

This shortcode allows you to show member/non-member alternative content on a single page.  We now prefer you use our secure membership system found on a wordpress page.  more documentation here on this newer method.