View Single Post
  #2  
Old 11-02-2003, 08:32 PM
  BoomBoomBap's Avatar 
BoomBoomBap BoomBoomBap is offline
 

Senior Member
  
Join Date: Nov 2002
Location: San Francisco
Posts: 184
 

Default

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:
$reviews = func_query ("SELECT * FROM $sql_tbl[product_reviews] WHERE productid='$productid'");

replace with this:

Code:
//for showing all reviews if ($show_all_reviews == yes) { $reviews = func_query ("SELECT * FROM $sql_tbl[product_reviews] WHERE productid='$productid'"); } else { $reviews = func_query ("SELECT * FROM $sql_tbl[product_reviews] WHERE productid='$productid' LIMIT 5"); } // change the LIMIT number to display less or more reviews // end

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:
({$reviews_total} total)
and this part of the mod should still work.
__________________
Site 1 > XCART LIVE 3.4.12

Site 2 > XCART LIVE 4.0.17
Reply With Quote