Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2012
    Posts
    12
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    3,182
    Plugin Contributions
    21

    Default Re: Product reviews not showing

    Quote Originally Posted by maz2390 View Post
    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.

    Code:
    <!--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
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered.

 

 

Similar Threads

  1. Reviews not showing up!
    By MK1990 in forum General Questions
    Replies: 0
    Last Post: 17 Sep 2011, 12:23 AM
  2. Help? Product Image not showing up on reviews write page...
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Nov 2010, 11:32 PM
  3. Replies: 0
    Last Post: 28 Apr 2009, 03:58 AM
  4. Reviews not showing
    By breck in forum General Questions
    Replies: 2
    Last Post: 4 Apr 2008, 11:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •