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-VOTED-ON-REVIEW-END}
Modular Merchant
QuickCode™ Glossary
{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-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-CUSTOMER-HAS-VOTED-ON-REVIEW-END}
<< {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} {IF-REVIEW-CRITERIA-BEGIN} >>
{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} Updated: 06/26/2013

The {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} QuickCode Tag may be used with the {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} QuickCode Tag to create a block of content that will only be shown if the current visitor has already voted on a particular product review.

Product review votes are tracked by IP address. This means that if a customer votes on a product review anonymously, and then views the same product page while logged in to his or her customer account, the shopping cart will still be able to show the dynamic content between {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END}, based on the IP address.

However, if two customers share a computer, and one of the customers votes on a product review, the content between {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} will then be displayed to both customers, since they would both be viewing the product page from the same IP address.

Requirements / Prerequisites

The {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} QuickCode Tag must be used in combination with the {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} QuickCode Tag. The {ELSE} QuickCode Tag may optionally be inserted between {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END}.

{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} are compatible with the product template (product.tplonly.

Content between {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} will be shown if the current visitor's IP address is already associated with a vote for the specific product review, or hidden if the current visitor's IP address is not already associated with a vote for the specific product review.

If {ELSE} is inserted between {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END}, then content between {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {ELSE} will be shown if the current visitor's IP address is already associated with a vote for the specific product review, while any alternate content between {ELSE} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} will be shown if the current visitor's IP address is not already associated with a vote for the specific product review.

{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN} and {IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END} should be placed between {REVIEW-BLOCK-BEGIN} and {REVIEW-BLOCK-END}, which should in turn be used between {IF-REVIEWS-BEGIN} and {IF-REVIEWS-END}.

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 learning about other customers' opinions of our products? With product reviews, you can read real feedback from real people, before you buy!<br />
{IF-REVIEWS-BEGIN}
{NUMBER-OF-REVIEWS} Reviews for {PRODUCT-NAME}<br />
<hr />
{REVIEW-BLOCK-BEGIN}
"{REVIEW-DETAIL}"<br />
Did you find this review helpful?<br />
{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-BEGIN}
<em>You have already voted on this review.</em><br />
{ELSE}
<strong><a href="{URL-REVIEW-VOTE-IS-HELPFUL}">YES</a></strong> / <strong><a href="{URL-REVIEW-VOTE-IS-UNHELPFUL}">NO</a></strong><br />
{IF-CUSTOMER-HAS-VOTED-ON-REVIEW-END}
<hr />
{REVIEW-BLOCK-END}
{ELSE}
{PRODUCT-NAME} has not yet been reviewed.<br />
{IF-REVIEWS-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 "Blue T-Shirt" product has five approved reviews, and the current visitor has already voted on the first review, the "Blue T-Shirt" product page will display the following:

Example
Hello, and welcome to my store!
Interested in learning about other customers' opinions of our products? With product reviews, you can read real feedback from real people, before you buy!
5 Reviews for Blue T-Shirt


"The Blue T-Shirt is great! It's a little bit bigger than expected, but extremely comfortable. It's made of soft, lightweight cotton, and the color is exactly as shown online!"
Did you find this review helpful?
You have already voted on this review.



"This blue t-shirt is my new favorite shirt!"
Did you find this review helpful?
YES / NO



"I bought the Blue T-Shirt as a gift for my brother. He seems to like it."
Did you find this review helpful?
YES / NO



"I was hoping the t-shirt would be a darker shade of blue, but other than that, I like this shirt very much."
Did you find this review helpful?
YES / NO



"This is the most comfortable t-shirt I've ever worn."
Did you find this review helpful?
YES / NO



Thanks for shopping!


3. If the store's Product Review Module is enabled, but the "Blue T-Shirt" product does not have at least one approved review, the "Blue T-Shirt" product page will display the following:

Example
Hello, and welcome to my store!
Interested in learning about other customers' opinions of our products? With product reviews, you can read real feedback from real people, before you buy!
Blue T-Shirt has not yet been reviewed.
Thanks for shopping!


4. If the store's Product Review Module is disabled, the corresponding storefront 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-CUSTOMER-HAS-VOTED-ON-REVIEW-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