Members: Reviews

The Product Reviews system allows your customers to review products on the Aurora Front-end which helps improve customer confidence in your products and allows you to collect feedback.

This article describes how to access and manage the Member Review Page and provides a list of variables made available to the Front-end Templates.

Introduction

Product Reviews Page lists all reviews left by the currently logged in user in the store. The list displays a short summary of each review that the user made and the option to edit it.

Managing Your Reviews

Where to access the Product Reviews Page

You can navigate to it when you are logged in from My Account menu at the top and then selecting Product Reviews link from the sub menu.  Please see the example provided by the Aurora Demo Store below.

http://demo.auroracommerce.com/members/reviews

Where to find the Product Reviews Page Templates

The template that should be used to control the content of the Product Reviews Page should be placed into your template directory and named as follows:

templates/your-template-dir/members/reviews.tpl.html

Variables available in the Product Reviews page

The following is a list of variables that can be accessed by the Aurora Front-end Templates.

The ID of the user who created the review

Variable nameTypeDescription
$pageTypeArrayDetermine the main area of the site you are on. Please refer to Global Template Variables article for more information.
$trackingArrayAn array of Affiliate and Traffic Tracking Codes to the Aurora Front-end.
$product_reviewsArray ( $product_review )Paginated array of $product_review
$product_review.idintThe review ID
$product_review.date_createdstringDate the review was created
$product_review.user_idintThe ID of the user who created the review
$product_review.user_ipstringThe IP of the user who created the review
$product_review.review_approvedintIf the review has been approved or not
$product_review.product_idintThe product ID for the review
$product_review.reviewer_namestringThe name of the reviewer
$product_review.reviewer_locationstringThe location of the reviewer
$product_review.review_recommendintIf the reviewer recommends this product
$product_review.reviewer_email_addressstringReviewer email address
$product_review.review_ratingfloatRating of the review
$product_review.review_titlestringTitle of the review
$product_review.review_descriptionstringThe description of the review
$product_review.review_video_linkstringVideo link of the review
$product_review.review_feedback_positive_ratingintTotal positive rating
$product_review.review_feedback_total_ratingsintTotal rating
$product_review.notify_customer_of_approvalintIf the customer should be notified about the approval
$product_review.customer_notified_of_approvalintIf the customer has been notified about the approval
$product_review.review_originstringThe origin of the platform where the review was left
$product_review.review_commentsArrayArray of review comments
$product_review.review_comments.idintComment ID
$product_review.review_comments.review_idintReview ID that this comment belongs to
$product_review.review_comments.date_createdstringDate that the review was created
$product_review.review_comments.user_idintThe ID of the user who left the review
$product_review.review_comments.review_commentstringThe review comment
$product_review.review_imagesArrayArray of review images
$product_review.review_images.idintImage ID
$product_review.review_images.date_createdstringThe date the image was uploaded
$product_review.review_images.review_idintThe review ID that this image belongs to
$product_review.review_images.review_image_namestringThe name of the image
$product_review.review_images.review_image_datastringImage contents
$product_review.review_images.review_image_captionstringImage caption
$product_review.productArrayThe product that was reviewed (Product Details)
$product_review.userArrayThe user who left the review
$product_review.user.email_addressstringUser's email address
$product_review.user.titlestringUser's title
$product_review.user.first_namestringUser's first name
$product_review.user.last_namestringUser's last name
$product_review.user.dobstringUser's date of birth
$product_review.user.photostringUser's photo
$product_review.ratings_textArrayArray of rating options of type text and their values. The key represents the rating name and the value is the text left by the user.
$product_review.ratings_starArrayArray of rating options of type star and their values. The key represents the rating name and the value is an integer between 1 - 5.
$product_review.ratings_radioArrayArray of rating options of type radio and their value. The key represents the rating name and the value the option selected by the user.

Related Aurora Demo Example Templates
templates/example.com/members/reviews.tpl.html