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.

Top of Page