Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / show review counts at the review module of the left or right column?

show review counts at the review module of the left or right column?

Started by win8win on 30 May 2012, 8:28 AM · Views: 489

Results 1 to 2 of 2
30 May 2012, 8:28 AM
#1
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Post #1 by win8win

how to add to show review counts at the review module who is showed at the left or right column?:blink:

focus on the open source for online shoping website.
my site: best shop 24h.com

30 May 2012, 2:58 PM
#2
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Post #2 by win8win

just figured out,and share on my blog,could I add my blog's link here?
if your home page was show featured products,do the following thing

1:/includes/modules/yourtemplate/featured_products.php

find “$list_box_contents[$row][$col] =”

and before it add:

$reviews_query = "select count(*) as count from " . TABLE_REVIEWS . " r, "
                                                   . TABLE_REVIEWS_DESCRIPTION . " rd
                   where r.products_id = '" . (int)$_GET['products_id'] . "'
                   and r.reviews_id = rd.reviews_id
                   and rd.languages_id = '" . (int)$_SESSION['languages_id'] . "'" .
                   $review_status;

$reviews = $db->Execute($reviews_query);

2:add $reviews->fields['count'] to where your wanna it to show
such as below "<div>' . $products_######## ."

focus on the open source for online shoping website.
my site: best shop 24h.com