Shortcode Dictionary

Shortcode Dictionary

1. [ec_store menuid=”1″ submenuid=’2′ subsubmenuid=’3′ manufacturerid=’4′ groupid=’5′ modelnumber=’XYZ’ language=’EN’]

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

2. [ec_cart language=’EN’]

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

3. [ec_account language=’EN’ redirect=’https://yoursite.com/membership-page’]

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.

4. [ec_product model_number=’XYZ’ productid=’1′ columns=’3′ margin=’45px’ width=’175px’ minheight=’375px’ imagew=’150px’ imageh=’140px’ style=’1′]

a. model_number – product reference by model number
b. productid – product reference by productid (preferred)
c. columns – sets the width of the product display
d. margin – spacing between products
e. width – width of the display
f. minheight – minheight of the product display
g. imagew – sets the image width
h. imageh – sets the image height
i. style – we offer styles 1, 2, and 3, which you can try to see what they look like.

5. [ec_addtocart productid=’1′]

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

6. [ec_cartdisplay] – simple cart display shortcode.

7. [ec_membership productid=’1,2,3′ userroles=’shopper,admin]

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).

8. [ec_membership_alt productid=’1,2,3′ userroles=’shopper,admin] – Shows the content for NON members. Match the productid and userroles to your ec_membership shortcode.

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).

9. [ec_store_table productid=’1′ menuid=”1″ submenuid=’2′ subsubmenuid=’3′ manufacturerid=’4′ categoryid=’5′ labels=’model Number, Product Name, Price’ columns=’model_number, title, price, details_link’, view_details=’View Product Details’] – This displays a table of products, good for products that do not need images.

a. productid – list of product ids to display, comma separated
b. menuid – Level 1 menu items
c. submenuid – Level 2 menu items
d. subsubmenuid – Level 3 menu items
e. manufacturerid – Manufacturer item
f. categoryid – Category item
g. labels – Table headers
h. columns – Table data (match headers!) and must find values in the ec_product table of the database. Also, details_link will display a product details link in a column, no header lable needed.
i. view_details – This is the label for the view details that will be used.

10. 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