| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
product rating for registered members only | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() i have searched the forum and can't find an answer. i do not want anyone who visits my site to be able to rate a product. how do i make this feature only available to members that are signed into their account?
__________________
/razorblade pro/ v 5.2.21 linux 2.2.29 |
|||||||||
#2
|
|||||||
|
|||||||
![]() There isn't a setting in admin for that, only for adding reviews. You would need to tweak the code to hide the rating option for non-logged in people.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() And it shouldn't very hard. Look at the code for the auth panel that shows a logout button, it obviously only displays if someone is logged in.
__________________
Jason Diehl Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/ |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
thanks, i checked it out, but honestly i am a ant in the world of xcart. any mod i incorpaorate has only come from detailed instructions, blind luck, or trial and error. and i am terrified of wrecking my xcart. could you possibly be a little more specific as to which templates and what i need to change. if not no biggy, thanks!
__________________
/razorblade pro/ v 5.2.21 linux 2.2.29 |
|||||||||
#5
|
|||||||
|
|||||||
![]() It must be your lucky day. I'm working in a fresh X-Cart install and I'm feeling generous so I looked it up for you. Try this and see if it works:
Open /xcart/skin1/modules/Customer_Reviews/vote.tpl and in version 4.0.19 it is line 24-36, find the following: Code:
And replace with this: Code:
And that should work. I didn't try it myself though. Keep in mind that if you can also add an else statement to notify people that they must be logged in to set a rating.
__________________
Jason Diehl Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/ |
|||||||
#6
|
|||||||||
|
|||||||||
![]() worked like a charm. but the lbl_customer_voting causes the word "Voting" to appear twice. so i created a new one called
lbl_customer_votinglimit "Voting - members only" and change the first lbl_customer_voting to lbl_customer_votinglimit looks great. (and i think i am finally starting to see how it all works) thanks!
__________________
/razorblade pro/ v 5.2.21 linux 2.2.29 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|