Warning: simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ' expected in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: hr line 7 and body in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: body line 4 and html in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag html line 2 in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 QC: {IF-DIGITAL-SAMPLE-BEGIN}
Modular Merchant
QuickCode™ Glossary
{IF-DIGITAL-SAMPLE-BEGIN}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{COMPOSITE-PRODUCT-IMAGE-SWAP}

{DIGITAL-SAMPLE-BLOCK-BEGIN}

{DIGITAL-SAMPLE-BLOCK-END}

{DIGITAL-SAMPLE-FILE}

{DIGITAL-SAMPLE-NAME}

{IF-BASKET-CONTAINS-SUBSCRIPTION-PRODUCTS-BEGIN}

{IF-DIGITAL-FILE-ELIGIBLE-BEGIN}

{IF-DIGITAL-FILE-ELIGIBLE-END}

{IF-DIGITAL-FILE-RELEASED-BEGIN}

{IF-DIGITAL-FILE-RELEASED-END}

{IF-DIGITAL-SAMPLE-BEGIN}

{IF-DIGITAL-SAMPLE-END}

{IF-PRODUCT-ATTRIBUTE-DESCRIPTION-BEGIN}

{IF-PRODUCT-ATTRIBUTE-DESCRIPTION-END}

{IF-PRODUCT-ATTRIBUTES-BEGIN}

{IF-PRODUCT-ATTRIBUTES-END}

{IF-PRODUCT-FIELD-DESCRIPTION-BEGIN}

{IF-PRODUCT-FIELD-DESCRIPTION-END}

{IF-PRODUCT-IN-ORDER-BEGIN}

{IF-PRODUCT-IN-ORDER-END}

{IF-PRODUCT-IN-SUBSCRIPTION-BEGIN}

{IF-PRODUCT-IN-SUBSCRIPTION-END}

{IF-PRODUCT-MSRP-SAVINGS-BEGIN}

{IF-PRODUCT-MSRP-SAVINGS-END}

{IF-PRODUCT-USES-STOCK-BEGIN}

{IF-PRODUCT-USES-STOCK-END}

{IF-RESULT-BEGIN}

{IF-RESULT-END}

{LIST-CATEGORIES}

{NEWEST-PRODUCT-BLOCK-BEGIN}

{NEWEST-PRODUCT-BLOCK-END}

{PRODUCT-ACTIVE}

{PRODUCT-ADD-TO-BASKET-BUTTON}

{PRODUCT-ATTRIBUTE-DESCRIPTION}

{PRODUCT-ATTRIBUTE-TITLE}

{PRODUCT-ATTRIBUTE-VALUE}

{PRODUCT-BREADCRUMB-LINKS}

{PRODUCT-FIELD-DESCRIPTION}

{PRODUCT-FIELD-TITLE}

{PRODUCT-FIELD-VALUES}

{PRODUCT-FIELD}

{PRODUCT-IMAGE-CAPTION}

{PRODUCT-IMAGE-TAG}

{PRODUCT-IMAGE-URL}

{PRODUCT-IN-SUBSCRIPTION-SUMMARY}

{PRODUCT-LINE-PRICE}

{PRODUCT-LONG-DESCRIPTION}

{PRODUCT-MODIFIER-MENUS}

{PRODUCT-MODIFIER-PRICE-ADJUSTMENT}

{PRODUCT-MODIFIER-VERSION}

{PRODUCT-MSRP-SAVINGS}

{PRODUCT-MSRP}

{PRODUCT-NAME}

{PRODUCT-ORIGINAL-PRICE}

{PRODUCT-PART-NUMBER}

{PRODUCT-PRICE-ORIGINAL}

{PRODUCT-PRICE-SUFFIX}

{PRODUCT-PRICE}

{PRODUCT-QUANTITY-FIELD}

{PRODUCT-REBILL-TERM-TEXT}

{PRODUCT-SHORT-DESCRIPTION}

{PRODUCT-SID}

{PRODUCT-STATUS}

{PRODUCT-UNITS-IN-STOCK}

{PRODUCT-UNITS-IN-STOCK}

{PRODUCT-WEIGHT}

{RECENTLY-VIEWED-PRODUCT-BLOCK-BEGIN}

{RECENTLY-VIEWED-PRODUCT-BLOCK-END}

{RELATED-PRODUCT-BLOCK-BEGIN}

{RELATED-PRODUCT-BLOCK-END}

{SUBCATEGORY-ACTIVE}

{VENDOR-ATTRIBUTE-TITLE}

{XSELL-BLOCK-BEGIN}

{XSELL-BLOCK-END}

Products > {IF-DIGITAL-SAMPLE-BEGIN}
<< {IF-DIGITAL-FILE-RELEASED-END} {IF-DIGITAL-SAMPLE-END} >>
{IF-DIGITAL-SAMPLE-BEGIN} Updated: 07/3/2013
The {IF-DIGITAL-SAMPLE-BEGIN} QuickCode Tag may be used with the {IF-DIGITAL-SAMPLE-END} QuickCode Tag to create a block of content that will only be shown if a certain product has one or more digital audio samples assigned to it.
 
Audio samples are assigned to products through the Audio Samples options in the Digital Delivery section of the Product Editor.
Requirements / Prerequisites

The {IF-DIGITAL-SAMPLE-BEGIN} QuickCode Tag must be used with the {IF-DIGITAL-SAMPLE-END} QuickCode Tag. The {ELSE} QuickCode Tag may optionally be inserted between {IF-DIGITAL-SAMPLE-BEGIN} and {IF-DIGITAL-SAMPLE-END}.

{IF-DIGITAL-SAMPLE-BEGIN} and {IF-DIGITAL-SAMPLE-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 {IF-DIGITAL-SAMPLE-BEGIN} and {IF-DIGITAL-SAMPLE-END} will be shown if the product has at least one audio sample assigned in the Digital Delivery section of the Product Editor.

Content between {IF-DIGITAL-SAMPLE-BEGIN} and {IF-DIGITAL-SAMPLE-END} will be hidden if the product does not have any audio samples assigned in the Digital Delivery section of the Product Editor.

If {ELSE} is inserted between {IF-DIGITAL-SAMPLE-BEGIN} and {IF-DIGITAL-SAMPLE-END}, then content between {IF-DIGITAL-SAMPLE-BEGIN} and {ELSE} will be shown if the product has at least one audio sample assigned in the Digital Delivery section of the Product Editor.

Any alternate content between {ELSE} and {IF-DIGITAL-SAMPLE-END} will be shown if the product does not have any audio samples assigned in the Digital Delivery section of the Product Editor.

 

Example of Use

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

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

<p><strong>{PRODUCT-NAME}</strong></p>
</div>
 
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:
Example

*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: Warning: date() expects parameter 2 to be long, string given in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 796
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {IF-DIGITAL-SAMPLE-BEGIN} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2019 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map