BePro Cart is a fairly simple and straight forward plugin. It provides shopping cart and payment features to our BePro Software products. To implement these features, you need to setup a page for the shopping cart and place the necessary shortcode on the page. This tutorial goes over the shortcodes offered by BePro Cart
BePro Cart SHORTCODES
Shopping Cart: To add the shopping cart to a post or page (example: a checkout page) simply add the shortcode [show_bepro_cart] to a post or page or use the sidebar widget to add the shopping cart to the sidebar.
Example shopping cart shortcode usage:
[show_bepro_cart]
Add to Cart Button: In the rare case that the plugin which uses BePro Cart, does not define products, you may be instructed to use this ‘Add to Cart’ button. To add an ‘Add to Cart’ button for a product simply add the following shortcode to a post or page next to the product. Replace the parameters like PRODUCT-NAME and PRODUCT-PRICE with the actual name and price of your product.
Example add to cart button shortcode usage:
[bepro_cart_button name="Test Product" price="29.95"]
OPTIONS
- name
- price
- Item number (aka post id of product)
- var1 (Pipe separated variations. First is the label, all others are options e.g. var1=”Color:red, blue, green”)
- var2 (Pipe separated variations. First is the label, all others are options e.g. var2=”Size:small, medium, large”)
- var3 (Pipe separated variations. First is the label, all others are options e.g. var3=”Style:type 1, type 2, type 3″)
CONCLUSION
Some shortcodes are needed like the shopping cart, which allows users to actually checkout. Other shortcodes you may never use, depending on the application that’s interfacing the BePro Cart. Also note that some shortcodes have options and others do not. Ultimately, the shortcode feature is designed to make it easy for you to easily deploy BePro Cart features.