Modular Merchant
QuickCode™ Glossary
{BEST-SELLERS-BLOCK-BEGIN}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
UNIVERSAL-CONTENT

{AMOUNT-OVER-MAX-ORDER-VALUE}

{AMOUNT-UNDER-MIN-ORDER-VALUE}

{BEST-SELLERS-BLOCK-BEGIN}

{BEST-SELLERS-BLOCK-END}

{CAPTCHA}

{COMPANY-LOGO}

{COUPON-VALUE}

{ELSE}

{ERRORS}

{EVENT-DESCRIPTION}

{EVENT-END-DATE}

{EVENT-NAME}

{EVENT-SID}

{EVENT-START-DATE}

{FORCE-HTTPS}

{FORCE-HTTP}

{GOOGLE-ANALYTICS-TRAFFIC}

{GOOGLE-ANALYTICS-TRANSACTION}

{IF-COMPANY-LOGO-BEGIN}

{IF-COMPANY-LOGO-END}

{IF-ERRORS-BEGIN}

{IF-ERRORS-END}

{IF-EVENTS-BEGIN}

{IF-EVENTS-END}

{IF-GOOGLE-ANALYTICS-BEGIN}

{IF-GOOGLE-ANALYTICS-END}

{IF-MESSAGES-BEGIN}

{IF-MESSAGES-END}

{INCLUDE-JAVASCRIPT-FILES}

{INCREMENT-RESULT}

{MAXIMUM-ORDER-VALUE}

{MESSAGES}

{MINIMUM-ORDER-VALUE}

{NULL}

{NUMBER-OF-RESULTS}

{PAGE-TITLE}

{POWERED-BY-MM}

{PRODUCT-UNIT-PRICE}

{REDIRECT-AFFILIATE-ACCOUNT-1}

{REDIRECT-CUSTOMER-ACCOUNT-1}

{REDIRECT-STORE-HOME}

{RESULTS-PER-PAGE}

{SEARCH-RESULTS-BLOCK-BEGIN}

{SEARCH-RESULTS-BLOCK-END}

{SEARCH-SCORE}

{SHOPPING-SESSION-ID}

{THIS-PAGE}

{URL-BASKET}

{URL-CHECKOUT}

{URL-CUSTOMER-ACCOUNT}

{URL-CUSTOMER-FETCH-LOGIN}

{URL-CUSTOMER-LOGIN}

{URL-LOG-OUT}

{URL-PRINT-ORDER-FORM}

{URL-SEARCH-RESULTS}

{URL-STORE-HOME}

Universal > {BEST-SELLERS-BLOCK-BEGIN}
<< {AMOUNT-UNDER-MIN-ORDER-VALUE} {BEST-SELLERS-BLOCK-END} >>
{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.)

Parameters
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:
{PRODUCT-IMAGE-CAPTION}
{PRODUCT-IMAGE-TAG}
{PRODUCT-IMAGE-URL}
{PRODUCT-IN-BASKET-SUMMARY}
{PRODUCT-LONG-DESCRIPTION}
{PRODUCT-NAME}
{PRODUCT-PART-NUMBER}
{PRODUCT-PRICE}
{PRODUCT-REBILL-TERM-TEXT}
{PRODUCT-SHORT-DESCRIPTION}
{PRODUCT-SID}
{PRODUCT-URL}

Example of Use

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

{BEST-SELLERS-BLOCK-BEGIN:5:7}
<a href="{PRODUCT-URL}">{PRODUCT-NAME}</a><br />
{BEST-SELLERS-BLOCK-END}

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.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2024 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map