Modular Merchant
QuickCode™ Glossary
{NUMBER-OF-REVIEWS}
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 > {NUMBER-OF-REVIEWS}
<< {IF-USING-PRODUCT-REVIEWS-END} {REVIEW-AUTHOR} >>
{NUMBER-OF-REVIEWS} Updated: 06/25/2013

The {NUMBER-OF-REVIEWS} QuickCode Tag may be used to display the total number of approved reviews for a particular product.

If the store's Product Reviews Module is enabled, customers may submit product reviews from the product page, and store admins may also create product reviews from the Product Review Editor. Once a product review has been created, it must be approved before it will be displayed in the storefront. Store admins may approve product reviews from the Search Product Reviews page or from the Product Review Editor. Additionally, the Product Reviews Module Settings include an option to auto-approve reviews submitted by customers who have already submitted a certain number of approved reviews.

Requirements / Prerequisites

The {NUMBER-OF-REVIEWS} QuickCode Tag is compatible with the product template (product.tplonly.

The {NUMBER-OF-REVIEWS} QuickCode Tag should be placed between {IF-REVIEWS-BEGIN} and {IF-REVIEWS-END}, since the number of reviews is only relevant if the product has at least one approved product review.

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}
{NUMBER-OF-REVIEWS} Reviews for {PRODUCT-NAME}
{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 five approved reviews, 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
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:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {NUMBER-OF-REVIEWS} 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