| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Mod: Display number of reviews | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Mod: Display number of reviews
I was looking to find a way to display the number of reviews and reached this post: http://forum.x-cart.com/viewtopic.php?t=2292 - which shows how to display the number of votes
Taking off from this idea I made the following mod: In customer/vote.php add the following code: Code:
and then in skin1/customer/Modules/Customer_Reviews/reviews.tpl add the following code where you want to display the number: Code:
Personally I placed it here: Code:
This shows something like "11 Customer Reviews" Neat ! Next I'd like to limit the number of reviews shown to 5 and then "click here to display all"
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#2
|
|||||||||
|
|||||||||
Okay, I've figured out how to limit the number of reviews displayed and then have a link to show all.
In customer/vote.php find this: Code:
replace with this: Code:
Then, in skin1/modules/Customer_Reviews/vote.tpl add this: If you have NOT used the mod listed in the first post then remove Code:
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#3
|
|||||||
|
|||||||
Great mod
__________________
ex x-cart guru |
|||||||
#4
|
|||||||
|
|||||||
Thanks for sharing this mod - fits what i was looking for perfectly.
__________________
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
|