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 / List Product Reviews in Product Detail page

List Product Reviews in Product Detail page

Locked

Started by foxshrill on 16 Jun 2009, 7:27 AM · Views: 2,120

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Jun 2009, 7:27 AM
#1
foxshrill avatar

foxshrill

New Zenner

Join Date:
May 2009
Posts:
5
Plugin Contributions:
0

Post #1 by foxshrill

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.

17 Jun 2009, 6:17 AM
#2
foxshrill avatar

foxshrill

New Zenner

Join Date:
May 2009
Posts:
5
Plugin Contributions:
0

Post #2 by foxshrill

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