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

The {IF-REVIEW-CRITERIA-BEGIN} QuickCode Tag may be used with the {IF-REVIEW-CRITERIA-END} QuickCode Tag to create a block of content that will only be shown if a particular product is assigned to a Ranking Criteria Goup.

If a product is assigned to a ranking criteria group, then when a customer reviews the product, the customer may also rate the product in terms of each of the criteria in the ranking criteria group. Content dealing with ranking criteria may be inserted between {IF-REVIEW-CRITERIA-BEGIN} and {IF-REVIEW-CRITERIA-END}, so that if a particular product is assigned to a ranking criteria group, the content will be displayed, but if the product is not assigned to a ranking criteria group, the content and its formatting will be seamlessly hidden without leaving odd gaps in the page.

Requirements / Prerequisites

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

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

Content between {IF-REVIEW-CRITERIA-BEGIN} and {IF-REVIEW-CRITERIA-END} will be shown if the product is assigned to a ranking criteria group, or hidden if the product is not assigned to a ranking criteria group. If {ELSE} is inserted between {IF-REVIEW-CRITERIA-BEGIN} and {IF-REVIEW-CRITERIA-END}, then content between {IF-REVIEW-CRITERIA-BEGIN} and {ELSE} will be shown if the product is assigned to a ranking criteria group, while any alternate content between {ELSE} and {IF-REVIEW-CRITERIA-END} will be shown if the product is not assigned to a ranking criteria group.

{IF-REVIEW-CRITERIA-BEGIN} and {IF-REVIEW-CRITERIA-END} may be used within the product review form, which should be inserted between {IF-REVIEWER-AUTHORIZED-BEGIN} and {IF-REVIEWER-AUTHORIZED-END}; or may be used 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!
{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!
{IF-REVIEWS-BEGIN}
Reviews for {PRODUCT-NAME}....
{REVIEW-BLOCK-BEGIN}
{IF-REVIEW-CRITERIA-BEGIN}
{REVIEW-CRITERIA-BLOCK-BEGIN}
{REVIEW-CRITERIA-RANK} for {REVIEW-CRITERIA-NAME}
{REVIEW-CRITERIA-BLOCK-END}
{IF-REVIEW-CRITERIA-END}
{REVIEW-DETAIL}
{REVIEW-BLOCK-END}
{ELSE}
{PRODUCT-NAME} has not yet been reviewed.
{IF-REVIEWS-END}
{ELSE}
Product reviews are not allowed at this time.
{IF-USING-PRODUCT-REVIEWS-END}
Thanks for shopping!


2. If the store's Product Review Module is enabled, and the "Blue T-Shirt" product has at least one approved review and is assigned to a ranking criteria group which consists of the ranking criteria "True to Size" and "Comfortable", 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!
Reviews for Blue T-Shirt....
4 for True to Size
5 for Comfortable

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!
Thanks for shopping!


3. If the store's Product Review Module is enabled, and the "Blue T-Shirt" product has at least one approved review and is not assigned to any ranking criteria group, 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!
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!
Thanks for shopping!


4. 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!


5. 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:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {IF-REVIEW-CRITERIA-BEGIN} 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