Retired Documentation: You are using the documentation for version 1.7.3 which was retired in 2013. Go here for the latest version documentation or check here for your available upgrades to the latest version.
Simple Commerce – Purchase Tag
The Simple Commerce Purchase tag is the primary tag used to display information about items in your store. It is designed to be used within a weblog entries tag, as store items are directly associated to weblog entries.
Here is a simple example of a possible usage of this tag:
{exp:simple_commerce:purchase entry_id="{entry_id}" success="site/success" cancel="site/index"}
{item_name}
<p><strong>{item_sale_price}</strong></p>
<p><a href="{buy_now_url}" onclick="window.open(this.href);return false;">Buy Now</a></p>
<p><a href="{add_to_cart_url}" onclick="window.open(this.href);return false;">Add to Cart</a></p>
<p><a href="{view_cart_url}" onclick="window.open(this.href);return false;">View Cart</a></p>
{/exp:simple_commerce:purchase}
Parameters
The Simple Commerce Purchase tag has a few parameters that can be used to control the behavior of the tag.
Variables
Inside of the tag you can use a number of variables to display different information such as the item's name, its price, how many times it has been purchased, and various other details.