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"}
{title}
<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.
User Contributed Notes
To stop having multiple pop-up window syndrome when using the ‘Add To Cart’ link above you can change the code to the code shown below :
onclick="window.open(this.href, 'paypal'); return false;"This will ensure that you will only get one shopping cart window instead of multiple instances.
Forum Link - http://expressionengine.com/forums/viewthread/66284/
You must have an ExpressionEngine license and have attained a forum rank of "Lab Assistant" (100 posts) to contribute notes to the User Guide