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.



