Modular Merchant
QuickCode™ Glossary
{IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{ALL-PRODUCT-BLOCK-BEGIN}

{ALL-PRODUCT-BLOCK-END}

{CHECKOUT-FIELD-SHIP-ADDRESS-TITLE}

{CHECKOUT-FIELD-VALUE}

{CONTENT-SLIDESHOW}

{CURRENCY-EXCHANGE-RATE}

{FACEBOOK-LIKE-BUTTON}

{FACEBOOK-URL}

{FIELD-CONTACT-MESSAGE}

{FIELD-CURRENCY-MENU}

{GOOGLE-PLUS-BADGE}

{GOOGLE-PLUS-ONE-BUTTON}

{GOOGLE-PLUS-SHARE}

{IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN}

{IF-CUSTOM-WEBPAGE-ACTIVE-END}

{IF-STOREFRONT-BANNER-BEGIN}

{IF-STOREFRONT-BANNER-END}

{PAY-METHOD-LOGOS}

{PRODUCT-DOWNSELL-BUTTON}

{PRODUCT-UPSELL-BUTTON}

{STOREFRONT-BANNER}

{TWITTER-FOLLOW-BUTTON}

{WEBPAGE-BLOCK-BEGIN}

{WEBPAGE-BLOCK-END}

{WEBPAGE-DESCRIPTION}

{WEBPAGE-NAME}

{WEBPAGE-URL}

Storefront > {IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN}
<< {GOOGLE-PLUS-SHARE} {IF-CUSTOM-WEBPAGE-ACTIVE-END} >>
{IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN} Updated: 06/27/2013

The {IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN} QuickCode Tag may be used with the {IF-CUSTOM-WEBPAGE-ACTIVE-END} QuickCode Tag to create a block of content that will only be shown if a specified custom webpage is active. The custom webpage is specified by adding its SID number as a parameter to {IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN}.

Requirements / Prerequisites

The {IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN} QuickCode Tag must be used in combination with the {IF-CUSTOM-WEBPAGE-ACTIVE-END} QuickCode Tag, and the SID number of a custom webpage must be added to {IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN} as a parameter.

Example of Use

1. Add the following code to any storefront template:

Example
{IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN:1}
<p><strong><a href="{WEBPAGE-URL:1}">{WEBPAGE-NAME:1}</a></strong></p>
<hr />
{IF-CUSTOM-WEBPAGE-ACTIVE-END}
{IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN:2}
<p><strong><a href="{WEBPAGE-URL:2}">{WEBPAGE-NAME:2}</a></strong></p>
<hr />
{IF-CUSTOM-WEBPAGE-ACTIVE-END}
{IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN:3}
<p><strong><a href="{WEBPAGE-URL:3}">{WEBPAGE-NAME:3}</a></strong></p>
<hr />
{IF-CUSTOM-WEBPAGE-ACTIVE-END}

 
2. If the store has three custom webpages (SID 1: "About Us", SID 2: "Store Policies", and SID 3: "FAQ"), and all three custom webpages are active, the storefront page that corresponds to the updated template would display the following:
Example
About Us


Store Policies


FAQ



3. If the store has three custom webpages (SID 1: "About Us", SID 2: "Store Policies", and SID 3: "FAQ"), and only custom webpage SID 2 is active, the storefront page that corresponds to the updated template would display the following:
Example
Store Policies

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