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-REVIEWER-AUTHORIZED-END}
Modular Merchant
QuickCode™ Glossary
{IF-REVIEWER-AUTHORIZED-END}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{FIELD-REVIEW-CRITERIA-MENU}

{FIELD-REVIEW-CRITERIA}

{FIELD-REVIEW-DETAILS}

{FIELD-REVIEW-SORT}

{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN}

{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END}

{IF-REVIEW-CRITERIA-BEGIN}

{IF-REVIEW-CRITERIA-END}

{IF-REVIEWER-AUTHORIZED-BEGIN}

{IF-REVIEWER-AUTHORIZED-END}

{IF-REVIEWS-BEGIN}

{IF-REVIEWS-END}

{IF-USING-PRODUCT-REVIEWS-BEGIN}

{IF-USING-PRODUCT-REVIEWS-END}

{NUMBER-OF-REVIEWS}

{REVIEW-AUTHOR}

{REVIEW-AVERAGE-RANK}

{REVIEW-BLOCK-BEGIN}

{REVIEW-BLOCK-END}

{REVIEW-COMPOSITE-RANK}

{REVIEW-CREATE-DATE}

{REVIEW-CRITERIA-BLOCK-BEGIN}

{REVIEW-CRITERIA-BLOCK-END}

{REVIEW-CRITERIA-DESCRIPTION}

{REVIEW-CRITERIA-NAME}

{REVIEW-CRITERIA-RANK}

{REVIEW-CRITERIA-SID}

{REVIEW-DETAIL}

{REVIEW-SID}

{REVIEW-SUMMARY}

{REVIEW-TOGGLE-DISPLAY-TAG}

{REVIEW-VOTES-HELPFUL}

{REVIEW-VOTES-TOTAL}

{REVIEW-VOTES-UNHELPFUL}

{URL-REVIEW-VOTE-IS-HELPFUL}

{URL-REVIEW-VOTE-IS-UNHELPFUL}

Reviews > {IF-REVIEWER-AUTHORIZED-END}
<< {IF-REVIEWER-AUTHORIZED-BEGIN} {IF-REVIEWS-BEGIN} >>
{IF-REVIEWER-AUTHORIZED-END} Updated: 06/24/2013

The {IF-REVIEWER-AUTHORIZED-END} QuickCode Tag may be used with the {IF-REVIEWER-AUTHORIZED-BEGIN} QuickCode Tag to enforce the Require Purchase? Product Reviews Module setting.

The store's Product Reviews Module Settings includes the Require Purchase? option, that may be used to prevent visitors who have not purchased the product from reviewing it. By default, the product review form is located between {IF-REVIEWER-AUTHORIZED-BEGIN} and {IF-REVIEWER-AUTHORIZED-END}, so if the Require Purchase? option is set to YES, the form will be hidden from visitors who do not meet the requirements to submit a product review.

Requirements / Prerequisites

The {IF-REVIEWER-AUTHORIZED-END} QuickCode Tag must be used in combination with the {IF-REVIEWER-AUTHORIZED-BEGIN} QuickCode Tag. The {ELSE} QuickCode Tag may optionally be inserted between {IF-REVIEWER-AUTHORIZED-BEGIN} and {IF-REVIEWER-AUTHORIZED-END}.

{IF-REVIEWER-AUTHORIZED-BEGIN} and {IF-REVIEWER-AUTHORIZED-END} are compatible with the product template (product.tplonly.

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

  • Require Purchase? is set to NO.
  • Require Purchase? is set to YES, and the customer is logged into his or her customer account and has purchased the product.

Content between {IF-REVIEWER-AUTHORIZED-BEGIN} and {IF-REVIEWER-AUTHORIZED-END} is hidden if either of the following conditions are true:

  • Require Purchase? is set to YES and the customer is not logged into his or her customer account.
  • Require Purchase? is set to YES and the customer is logged into his or her customer account but has not yet purchased the product.

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

  • Require Purchase? is set to NO.
  • Require Purchase? is set to YES, and the customer is logged into his or her customer account and has purchased the product.

Any alternate content between {ELSE} and  {IF-REVIEWER-AUTHORIZED-END} is shown if either of the following conditions are true:

  • Require Purchase? is set to YES and the customer is not logged into his or her customer account.
  • Require Purchase? is set to YES and the customer is logged into his or her customer account but has not yet purchased the product.

It is recommended to always place any content related to product reviews between the {IF-USING-PRODUCT-REVIEWS-BEGIN} and {IF-USING-PRODUCT-REVIEWS-END} QuickCode Tags, so that the content will be shown when the store's Product Reviews Module is enabled, but hidden if the store's Product Reviews Module is disabled.

Example of Use

1. Add the following to the store's product template (product.tpl):

Example
Hello, and welcome to my store!<br />
{IF-USING-PRODUCT-REVIEWS-BEGIN}
Interested in sharing your opinion of {PRODUCT-NAME}?<br />
{IF-REVIEWER-AUTHORIZED-BEGIN}
<form action="{THIS-PAGE}" method="post" name="sample_review_form">
<p><i>Write your review here:</i><br />
{FIELD-REVIEW-DETAILS}</p>
<p><input name="submit_review" type="submit" value="Submit Review" class="UNIVERSAL-BUTTON" /></p>
</form>

{ELSE}
Only customers who have purchased {PRODUCT-NAME} may submit a review. If you've purchased {PRODUCT-NAME}, log in to submit a review:<br />
<form action="{THIS-PAGE}" method="post" name="sample_login_form">
<p><span class="SECTION-TITLE">Email Address:</span> <input name="login_email" size="30" type="text" /></p>
<p><span class="SECTION-TITLE">Password:</span>  <input name="login_password" size="30" type="password" /></p>
<p><input name="customer_login" type="submit" value="Log in to your Customer Account" /></p>
</form>

{IF-REVIEWER-AUTHORIZED-END}
{ELSE}
Product reviews are not allowed at this time.<br />
{IF-USING-PRODUCT-REVIEWS-END}
Thanks for shopping!<br />


2. If the store's Product Review Module is enabled, and the store's Require Purchase? option is set to NO -OR- the current customer is logged in and has purchased the "Blue T-Shirt" product, the "Blue T-Shirt" product page will display the following:

Example
Hello, and welcome to my store!
Interested in sharing your opinion of Blue T-Shirt?

Write your review here:

Thanks for shopping!

 


3. If the store's Product Review Module is enabled,  and the store's Require Purchase? option is set to YES -AND- the current customer is not logged in or has not purchased the "Blue T-Shirt" product, the "Blue T-Shirt" product page will display the following:

Example
Hello, and welcome to my store!
Interested in sharing your opinion of Blue T-Shirt?

Only customers who have purchased Blue T-Shirt may submit a review. If you've purchased Blue T-Shirt, log in to submit a review:

Email Address: 

Password: 

Thanks for shopping!

 


4. If the store's Product Review Module is disabled, the "Blue T-Shirt" product page will display the following:

Example
Hello, and welcome to my store!
Product reviews are not allowed at this time.
Thanks for shopping!

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-REVIEWER-AUTHORIZED-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