add_to_cart shortcode

WP eCommerce Version : 3.9.1

add_to_cart shortcode allows user to display addToCartbutton on either post or page. Clicking this button will add the specific item to the cart.

 

Format:

[add_to_cart=ID] – where ID is the product ID.

 

Example:

[add_to_cart=12]

 

Troubleshooting tips:

For the non-technical user out there, finding the product ID might be an issue since if you just installed WP eCommerce plugin, it is not displayed anywhere on the product page.

The product ID can be found here :

HowToFindProductID