I have not been able to find an answer to my problem. If there is and anybody knows, first I apologize and second please direct me to it.
My problem is that I have Tabbed Products Pro installed and Average Product Rating installed as well. If the Tabbed Products Pro is enabled the Average Product Rating information will not show.
As you all know, the top portion of the code for Tabbed Products is
PHP Code:
<?php
//BOF :: Tabbed Products Pro ::
require(DIR_WS_MODULES . 'tabbed_products_pro.php');
//EOF :: Tabbed Products Pro ::
?>
If I place the code for Average Product Rating (shown below) above the Tabbed Products code, the contributions work. I would like for the code to remain where is supposed to, almost at the bottom of tpl_product_info_display.php
PHP Code:
<?php
echo '<p class="reviewCount">';
if ($flag_show_product_info_reviews_count == 1) {
echo TEXT_CURRENT_REVIEWS . ' <strong>' . $reviews->fields['count'] . '</strong><br />';
$stars_image_suffix = str_replace('.', '_', zen_round($reviews_average_rating->fields['average_rating'] * 2, 0) / 2); // for stars_0_5.gif, stars_1.gif, stars_1_5.gif etc.
$average_rating = zen_round($reviews_average_rating->fields['average_rating'], 2);
echo TEXT_CURRENT_REVIEWS_RATING . ' <strong>' . $average_rating . '</strong> ' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $stars_image_suffix . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $average_rating));
} else {
echo '';
}
echo '</p>';
?>
Thanks for any help.
Bookmarks