E: sales@storesprite.com

Function Guide: getbestSellers();

Optional and very flexible can be used to display bestsellers A: Overall for whole store and B: On a per category basis.

The calling function should be included in site header or footer file to be used for A&B concurrently.

Calling function can also be located in other files - for example shop index (to display best selling items on store homepage!).

Function Values
You will notice that the calling function accepts two values, the first is the number of best sellers you want returned, the second is an optional category id (dynamically assigned).

Default file location: templates/defaultfooter.php
Tplate File: bestSellers.html
Type: Looping (?)
Required: Optional
(?)
Portable: Yes
(?)

Tag Name / Code Details
{PRODUCT-ADDTOBASKET} Returns form action url for adding item to basket
{PRODUCT-LINK} Returns link to product display page
{PRODUCT-THUMBIMAGE} Returns thumbnail image of product
{PRODUCT-NAME} Returns the product name
{QTY} Returns qty input box
{PRODUCT-OPTIONSPRICES} Returns price or drop down of options if applicable to product
{IFID} Returns numeric list id (eg 1 - 10)
{PRICE-SINGLE} Returns single price (if you want to hide options)