Modular Merchant
QuickCode™ Glossary
{IF-PRODUCT-IN-ORDER-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-PRODUCT-IN-ORDER-BEGIN}
<< {IF-PRODUCT-FIELD-DESCRIPTION-END} {IF-PRODUCT-IN-ORDER-END} >>
{IF-PRODUCT-IN-ORDER-BEGIN} Updated: 09/16/2011

The contents between the {IF-PRODUCT-IN-ORDER-BEGIN} and {IF-PRODUCT-IN-ORDER-END} QuickCode Tags will be displayed if the customer's order contains the specified products.

This QuickCode Tag parameters.
Parameters are passed to a QuickCode Tag by adding a colon in the QuickCode Tag between each parameter.
For example: {IF-PRODUCT-IN-ORDER-BEGIN:parameter one: parameter two}

The following parameters are accepted by this QuickCode Tag:
Parameter 1: A comma-separated list of the product SID numbers to try and find in the customer's order. Example: 1,2,3

Parameter 2: Either "any" or "all". Determines whether the check for the listed products evaluates as true if any of them are found in the customer's order, or whether all of them must be found. If this parameter is excluded, it will default to "any". Example: all

Requirements / Prerequisites

Must be used in conjunction with the {IF-PRODUCT-IN-ORDER-END} QuickCode Tag.

This QuickCode Tag can be used in the following locations:

  • Any storefront template
    Will check the products for all of the shipping addresses in the customer's basket.
     
  • Receipt Email
    Will check the products included in the order the receipt is for.
     
  • Checkout Receipt page / Printable Checkout Receipt page
    When used in the receipt template outside of the {RECEIPT-ADDRESS-BLOCK-BEGIN} and {RECEIPT-ADDRESS-BLOCK-END} QuickCode tags, it will check the products for all of the shipping addresses being displayed on the receipt page.
     
  • Between {RECEIPT-ADDRESS-BLOCK-BEGIN} and {RECEIPT-ADDRESS-BLOCK-END} Tags
    When used between these two tags in the receipt page's template, then it will check the products in that specific order's receipt.
     
  • Between {BASKET-FES-BLOCK-BEGIN} and {BASKET-FEES-BLOCK-END} Tags
    When used between these two tags in any template, then it will check the products in the customer's basket that are assigned to that specific shipping address.
     
  • Between {ORDER-HISTORY-BLOCK-BEGIN} and {ORDER-HISTORY-BLOCK-END} Tags
    When used between these two tags in the Customer Account Area templates, then it will check the products in that specific order.
Example of Use

The following code:

{IF-PRODUCT-IN-ORDER-BEGIN:17,19:any}
<p>You have Product Seventeen OR Product Nineteen in your order!</p>
{IF-PRODUCT-IN-ORDER-END}

Would print out
You have Product Seventeen OR Product Nineteen in your order!
if either the product with SID 17 or 19 are present in the customer's order.

 


The following code:

{IF-PRODUCT-IN-ORDER-BEGIN:17,19}
<p>You have Product Seventeen AND Product Nineteen in your order!</p>
{IF-PRODUCT-IN-ORDER-END}

Would print out
You have Product Seventeen AND Product Nineteen in your order!
if both the products with SID 17 and 19 are present in the customer's order.

 

Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {IF-PRODUCT-IN-ORDER-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