Modular Merchant
QuickCode™ Glossary
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:

























































{BEST-SELLERS-BLOCK-BEGIN} Updated: 12/16/2011

The {BEST-SELLERS-BLOCK-BEGIN} tag can be used to display a list of your store's best selling products. Any content placed between this and the {BEST-SELLERS-BLOCK-END} tags will be repeated once for each of your best selling products. (See Example of Use below for details.)

This QuickCode Tag will accept two parameters,allowing you to customize both the nubmer of best selling products listed, and how far into the past to search for them. The parameters are added into the QuickCode Tag, and separated by colons.

Parameter 1: Sets the number of best selling products to list. If not specified, then the ten best selling products will be listed.

Parameter 2: Sets how many days into the past to evaluate when calculating the best sellers. If not specified, the store's entire sales history will be used.

Examples of using Parameters:
To display the top ten best sellers of all time: {BEST-SELLERS-BLOCK-BEGIN}

To display the top five best sellers of all time: {BEST-SELLERS-BLOCK-BEGIN:5}

To display the top five best sellers of the last seven days: {BEST-SELLERS-BLOCK-BEGIN:5:7}

To display the best selling product of the last thirty days: {BEST-SELLERS-BLOCK-BEGIN:1:30}

Requirements / Prerequisites

Must be used in conjunction with the {BEST-SELLERS-BLOCK-END} tag.

The following QuickCode Tags can be used between the {BEST-SELLERS-BLOCK-BEGIN} and {BEST-SELLERS-BLOCK-END} tags:

Example of Use

To display a list of the top five best selling products of the last week:

<a href="{PRODUCT-URL}">{PRODUCT-NAME}</a><br />

This will display a link to each product's page on a separate line.

Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {BEST-SELLERS-BLOCK-BEGIN} QuickCode Tag is changed into the source code below prior to the web page being displayed.
  Copyright © 2001 - 2024 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map