Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Product reviews not showing

Product reviews not showing

Started by maz2390 on 19 Aug 2012, 9:55 PM · Views: 587

Results 1 to 2 of 2
19 Aug 2012, 9:55 PM
#1
maz2390 avatar

maz2390

New Zenner

Join Date:
Aug 2012
Posts:
10
Plugin Contributions:
0

Product reviews not showing

I've noticed my product reviews section isn't showing up on the product info page.

It appears to be a template issue as when I change my custom one back to the default green template, it's all there. I'm using the Bask Black template.

Does anyone have any ideas as to why it isn't showing or what template code/files relate to the product reviews?

20 Aug 2012, 2:28 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,327
Plugin Contributions:
41

Re: Product reviews not showing

maz2390:

I've noticed my product reviews section isn't showing up on the product info page.

It appears to be a template issue as when I change my custom one back to the default green template, it's all there. I'm using the Bask Black template.

Does anyone have any ideas as to why it isn't showing or what template code/files relate to the product reviews?

providing you are using Zen Cart 1.5.0 you would re-add the reviews code to includes/templates/your_template/tpl_product_info_display.php where you want the reviews to display. You may have to add CSS for them if none was added to the template you are using either.

<!--bof Reviews button and count-->
<?php
  if ($flag_show_product_info_reviews == 1) {
    // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
    if ($reviews->fields['count'] > 0 ) { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
<?php } else { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<?php
  }
}
?>
<!--eof Reviews button and count -->

~Melanie