| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
voting with based on xxx votes?!? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
voting with based on xxx votes?!?
Hi there!
I asked myself if there is a nice way to put a txt beside the voting-stars with something like "based on xxx votes"?! A five-star-rating is nothing, if there is only one voting Cheers, Mickna |
|||||||
#2
|
|||||||
|
|||||||
Done!
I think this should work: Have to hack customer/vote.php. Insert the line $smarty->assign ("vote_total", $vote_result["total"]); Code:
Next open /modules/Customer_Reviews/vote.tpl and insert: {$lng.lbl_votetotal_1} {$vote_total} {$lng.lbl_votetotal_2} after the stars: Code:
Well and then open the language in the admin-section and add two new fields: Code:
Think this is right Cheers, mickna |
|||||||
#3
|
|||||||
|
|||||||
In vote.tpl you could alternatively add the following to determine plurality of review(s).
Code:
Probably wouldn't work so great with languages other than English, so you if you go this route you may just want to create two seperate language variables, 'review' and 'reviews' which would end up something like... Code:
Heh...well anyway, there's my two cents. |
|||||||
#4
|
|||||||
|
|||||||
Great mod contribution for any cart, thanks for sharing with us all.
__________________
Cheers from Melanie ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Xcart V4.0.4 (Unix) - LIVE AOM, Fancy Categories Marketing Manager, Reward Points & Refer Rewards Advanced Site Map Easy Checkout Gift & Homeware House www.giftandhomewarehouse.com.au |
|||||||
|
|||
X-Cart forums © 2001-2020
|