


This article is based around the Virtuemart plugin for Joomla, you will need FTP access and a text editor to edit your template file.
You can enable customer "comments" or "reviews" by logging into the back-end of Joomla:
When a customer leaves a review it show:
To edit the template of the customer review, locate the file:
/components/com_virtuemart/themes/ja-zeolite/templates/common/reviews.tpl.php
Here you can edit the template itself, or add in the following variables:
$review['userid'] => The user ID of the comment author
$review['username'] => The username of the comment author
$review['name'] => The name of the comment author
$review['time'] => The UNIX timestamp of the comment ("when" it was posted)
$review['user_rating'] => The rating; an integer from 1 - 5
$review['comment'] => The comment text
Remember to Save and Upload your file when you finished editing. Your changes will be noticeable as soon as you refresh the page.
Post new comment