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










































































{DIGITAL-SAMPLE-BLOCK-END} Updated: 07/3/2013
The {DIGITAL-SAMPLE-BLOCK-END} QuickCode Tag may be used with the {DIGITAL-SAMPLE-BLOCK-BEGIN} QuickCode Tag to create a block of content that will be added to the page once for each digital audio sample assigned to the product.
Audio samples are assigned to products through the Audio Samples options in the Digital Delivery section of the Product Editor.
Requirements / Prerequisites

The {DIGITAL-SAMPLE-BLOCK-BEGIN} QuickCode Tag must be used with the {DIGITAL-SAMPLE-BLOCK-END} QuickCode Tag.

{DIGITAL-SAMPLE-BLOCK-BEGIN} and {DIGITAL-SAMPLE-BLOCK-END} are compatible with the product template (product.tpl), and may also be used in other HTML templates, as long as they are placed within one of the following QuickCode Blocks:

Content between {DIGITAL-SAMPLE-BLOCK-BEGIN} and {DIGITAL-SAMPLE-BLOCK-END} will be added to the page once for each of the product's audio samples. 

It is recommended to place content related to audio samples between {IF-DIGITAL-SAMPLE-BEGIN} and {IF-DIGITAL-SAMPLE-END}, so that the content will be displayed if the product does have at least one audio sample, but hidden if the product does not have any audio samples.

Example of Use

1. Add the following to the store home template (index.tpl or store_home.tpl):

<div><h4>This Week's Top Seller</h4>

2. If the store's best selling product over the past seven days was "Another Robot", which has audio samples named "Cookie Hangar", "Lemon Yellow Sportscar", and "When I Lose My Way", the store home page will display the following:

*Note: Different browsers may format audio controls differently. Firefox 21.0 displays audio controls as shown in the above image.
Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {DIGITAL-SAMPLE-BLOCK-END} 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