I have maybe a strange request, but I believe it should be done this way. Now everyone can rate products without even having an account in my e-shop, so they can spam my site and their ratings will be with no value for me and for the customers. I wonder, if there is any way how to allow to rate products on my site only for customers with account (registered users)?
I was trying to find something like this here, but was'nt succesful. Thank you for your help and advices in advance.
To make the review writing ability only available to logged-in customers, do the following:
IN:
AFTER:
ADD:
AND BEFORE:
ADD:
This effectively puts a conditional block around the review writing portion, so it'll only show if the customer has an account and is logged in. I tested it briefly and it seems to work fine.
IN:
Code: Select all
/catalog/view/theme/YOURTHEME/template/product/product.tpl
Code: Select all
<div id="review"></div>
Code: Select all
<?php if ($this->customer->isLogged()) { ?>
Code: Select all
</div>
<?php } ?>
<div id="tab_image" class="tab_page">
Code: Select all
<?php } ?>
Who is online
Users browsing this forum: No registered users and 58 guests