Modular Merchant
QuickCode™ Glossary
{IF-CUSTOMER-HAS-SUBSCRIPTION-END}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN}

{IF-CUSTOMER-HAS-SUBSCRIPTION-END}

Subscriptions > {IF-CUSTOMER-HAS-SUBSCRIPTION-END}
<< {IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN}
{IF-CUSTOMER-HAS-SUBSCRIPTION-END} Updated: 06/27/2013

This QuickCode Tag is used in conjunction wtih {IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN}, to display content if hte customer has an active subscription consisting of one or more products.

If the {ELSE} QuickCode Tag is used between {IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN} and {IF-CUSTOMER-HAS-SUBSCRIPTION-END}, then:

Content between {IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN} and {ELSE} will be displayed only if the customer has a subscription.
Content between {ELSE} and {IF-CUSTOMER-HAS-SUBSCRIPTION-END} will be displayed if the customer does not have a subscription.

Requirements / Prerequisites

Must be used in conjunction with the {IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN} QuickCode Tag.

The {ELSE} QuickCode Tag may optionally be used between {IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN} and {IF-CUSTOMER-HAS-SUBSCRIPTION-END}

Example of Use

Code

{IF-CUSTOMER-HAS-SUBSCRIPTION-BEGIN}
<a href="http://www.mystore.com/customer.php?customer_page=1" target="_blank">Click here to manage your subscription.</a>
{ELSE}
<a href="http://www.mystore.com/customer_login.php">Log in</a> or subscribe to gain access to member's only content!
{IF-CUSTOMER-HAS-SUBSCRIPTION-END}

If the customer has a subscription, they will be displayed with a link to manage their subscription. If the customer is not logged in or does not have a subscription, they will be provided a link to log in and informed to subscribe.

Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {IF-CUSTOMER-HAS-SUBSCRIPTION-END} 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