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-CUSTOMER-HAS-SUBSCRIPTION-END}
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: 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-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 - 2019 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map