
Originally Posted by
RedSpinnaker
Re: Product Reviews:
Haven't seen any replies to this. Is there any update?
Cheers
Terry
Let me say upfront that I do NOT use this template but have downloaded it to see what this issue is about. So if you go into the file for tpl_product_reviews_write.php, you will find reference to this part which is where you pick the rating from 1 to 5 stars. Here is the part that may be causing the issue:
Code:
<li>
<?php echo zen_draw_radio_field('rating', '1', '', 'id="rating-1" class="star"'); ?>
<!--?php echo '<label class="" for="rating-1">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, OTHER_REVIEWS_RATING_STARS_ONE_ALT) . '</label> '; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '2', '', 'id="rating-2" class="star"'); ?>
<!-- ?php echo '<label class="" for="rating-2">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, OTHER_REVIEWS_RATING_STARS_TWO_ALT) . '</label>'; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '3', '', 'id="rating-3" class="star"'); ?>
<!--?php echo '<label class="" for="rating-3">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, OTHER_REVIEWS_RATING_STARS_THREE_ALT) . '</label>'; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '4', '', 'id="rating-4" class="star"'); ?>
</li>
<li>
<?php echo zen_draw_radio_field('rating', '5', '', 'id="rating-5" class="star"'); ?>
<!--?php echo '<label class="" for="rating-5">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, OTHER_REVIEWS_RATING_STARS_FIVE_ALT) . '</label>'; ? -->
</li>
If you go in and take away each reference to "<!--" and "-->" it should show on your page. Why it is commented out, I don't know as I haven't used this template. But I see no reason for it to be commented out as I see no reference in the template using its own custom rating system. I assume this was an overlook on the authors part.
However, with this said, I had tested this template out in its initial release as a friend wanted to use it. But long story short, I decided to not to use it as I found about 12 other things that needed to be changed to bring back zencart functionality.