| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Restrict Voting and Reviews to Registered Customers Only | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Restrict Voting and Reviews to Registered Customers Only
From what I could find, X-Cart lets you select under Modules Options the ability to allow only registered customers to Write Reviews, but even when you set this it still allows unregistered customers to set a Ranking. I needed to make it to where only registered customers can both write reviews and set rankings because otherwise anonymous users could set rankings and possibly ruin product ratings, defeating the whole purpose of the feature. Also I wanted to make it to where unregistered customers would still be able to view the rankings and reviews that were made by registered customers.
Firstly, make sure you have Customer Reviews turned on under Modules. Also turn on Allow viewing reviews, Allow voting, and Allow adding reviews under Modules Options. Secondly, edit the file: /modules/Customer_Reviews/vote_reviews.tpl Code:
Copy and paste the following code to replace the previous code: Code:
There may be a shorter way to do this but this is my first customization for X-Cart that I have posted and I am still new to Smarty. From my tests it works for me perfect, but please let me know if it doesn't work for you.
__________________
X-Cart Platinum 4.6.5 |
|||||||
#2
|
|||||||||
|
|||||||||
Thanks for this!
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|