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-PAYPAL-WPS-ELIGIBLE-END}
Modular Merchant
QuickCode™ Glossary
{IF-PAYPAL-WPS-ELIGIBLE-END}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{IF-ORDER-CONTAINS-SUBSCRIPTION-PRODUCTS-BEGIN}

{IF-ORDER-CONTAINS-SUBSCRIPTION-PRODUCTS-END}

{IF-ORDER-HISTORY-BEGIN}

{IF-ORDER-HISTORY-END}

{IF-PAYPAL-WPS-ELIGIBLE-BEGIN}

{IF-PAYPAL-WPS-ELIGIBLE-END}

{IF-USING-PAYPAL-WPS-BEGIN}

{IF-USING-PAYPAL-WPS-END}

{ORDER-MEMOS}

{URL-PRINTABLE-ORDER-RECEIPT}

Orders > {IF-PAYPAL-WPS-ELIGIBLE-END}
<< {IF-PAYPAL-WPS-ELIGIBLE-BEGIN} {IF-USING-PAYPAL-WPS-BEGIN} >>
{IF-PAYPAL-WPS-ELIGIBLE-END} Updated: 07/2/2013

The {IF-PAYPAL-WPS-ELIGIBLE-END} QuickCode Tag may be used with the {IF-PAYPAL-WPS-ELIGIBLE-BEGIN} QuickCode Tag to enforce the store's Allow off-site payment gateways? setting.

The store's Subscription Products Module Settings include the Allow off-site payment gateways? setting, that may be used to prevent customers from using an off-site payment gateway (such as PayPal Website Payments Standard) to purchase a subscription product.

In the default checkout template (checkout_1.tpl), the PayPal Website Payments Standard payment option is located between {IF-PAYPAL-WPS-ELIGIBLE-BEGIN} and {IF-PAYPAL-WPS-ELIGIBLE-END}, so if the Allow off-site payment gateways? option is set to NO, the PayPal Website Payments Standard payment option will be hidden when the current order includes one or more subscription products.

Requirements / Prerequisites

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

{IF-PAYPAL-WPS-ELIGIBLE-BEGIN} and {IF-PAYPAL-WPS-ELIGIBLE-END} are compatible with checkout templates. The default checkout template is checkout_1.tpl, but some template packages may include additional checkout templates for a multi-page checkout process.

Content between {IF-PAYPAL-WPS-ELIGIBLE-BEGIN} and {IF-PAYPAL-WPS-ELIGIBLE-END} is shown if either of the following conditions are true:

  • Allow off-site payment gateways? is set to YES.
  • Allow off-site payment gateways? is set to NOand the current order does not include any subscription products.

Content between {IF-PAYPAL-WPS-ELIGIBLE-BEGIN} and {IF-PAYPAL-WPS-ELIGIBLE-END} is hidden if the following condition is true:

  • Allow off-site payment gateways? is set to NOand the current order includes at least one subscription product.

If {ELSE} is inserted between  {IF-PAYPAL-WPS-ELIGIBLE-BEGIN} and {IF-PAYPAL-WPS-ELIGIBLE-END}, then content between {ELSE} and {IF-PAYPAL-WPS-ELIGIBLE-BEGIN} is shown if either of the following conditions are true:

  • Allow off-site payment gateways? is set to YES.
  • Allow off-site payment gateways? is set to NOand the current order does not include any subscription products.

Any alternate content between {ELSE} and {IF-PAYPAL-WPS-ELIGIBLE-END} is shown if the following condition is true:

  • Allow off-site payment gateways? is set to NOand the current order includes at least one subscription product.

It is recommended to place any content related to the PayPal Website Payments Standard payment gateway between {IF-USING-PAYPAL-WPS-BEGIN} and {IF-USING-PAYPAL-WPS-END}, so that the content will be shown when the PayPal Website Payments Standard payment gateway is enabled in the store's Merchant Account Settings section of the System Settings, but hidden if the PayPal Website Payments Standard payment gateway is disabled.

Example of Use

1. Add the following to the checkout template:

Example
<form action="{THIS-PAGE}" method="post" name="checkout_form" id="checkout_form">
{IF-USING-PAYPAL-WPS-BEGIN}
{IF-PAYPAL-WPS-ELIGIBLE-BEGIN}
{PAYPAL-WPS-CAPTURE-ORDER-BUTTON}
{ELSE}
Subscription orders are not eligible for payment through PayPal. Please select one of the other payment options.
{IF-PAYPAL-WPS-ELIGIBLE-END}
{IF-USING-PAYPAL-WPS-END}
</form>

2. If the PayPal Website Payments Standard payment gateway is enabled, and the store's Allow off-site payments? option either is set to YES, or is set to NO but the order does not contain any subscription products, the checkout page will display the following:

Example

3. If the PayPal Website Payments Standard payment gateway is enabled, and the store's Allow off-site payments? option is set to NO and the order contains any subscription products, the checkout page will display the following:

Example
Subscription orders are not eligible for payment through PayPal. Please select one of the other payment options.

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-PAYPAL-WPS-ELIGIBLE-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