Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default List Product Reviews in Product Detail page

    I am New to zencart, playing with template overrides.

    The default template layout in Zencart for Product description page displays a "GOTO REVIEWS PAGE" button.

    I want to replace that with the actual reviews themselves.

    In my templates folder:

    I am trying to modify the file "tpl_product_info_display 2.php" to include the reviews. The code for reviews, I am copying from "tpl_product_reviews_info_default.php"

    This is the piece of code I am copying from "tpl_product_reviews_info_default.php" to "tpl_product_info_display 2.php"

    <?php
    foreach ($reviewsArray as $reviews) {
    ?>
    <div class="buttonRow forward">.......</div>

    <div class="productReviewsDefaultReviewer bold">....</div>

    <div class="rating">.......</div>

    <div class="productReviewsDefaultProductMainContent content">.....</div>

    <?php
    }
    ?>

    Obviously it does not get into the FOR LOOP. Any thoughts on how I should handle this.

  2. #2
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: List Product Reviews in Product Detail page

    Any thoughts on the above issue?

    I am clueless as to how to populate the $reviewsarray variable when accessing from the product display page. Eventhough, the $reviewsarray variable has a value in the reviews page.

    Both the pages are under the template folder.
    tpl_product_info_display 2.php
    tpl_product_reviews_default.php

  3. #3
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: List Product Reviews in Product Detail page

    There is a mod in the free addons that will do what you need: http://www.zen-cart.com/index.php?ma...roducts_id=213 :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

 

 

Similar Threads

  1. Replies: 6
    Last Post: 31 Mar 2014, 03:06 PM
  2. How To Display Product List Below Product Detail?
    By scottdev in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Jun 2009, 06:59 PM
  3. "Back To List" button on product detail returning to page 1
    By smythmikey in forum General Questions
    Replies: 1
    Last Post: 3 Feb 2009, 07:18 AM
  4. Replies: 1
    Last Post: 29 Mar 2007, 12:11 AM
  5. Moving the Product Detail list
    By SandraJ7 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 May 2006, 11:09 PM

Posting Permissions

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