Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • 7of9 Friend
    #190222

    Hi,

    The Average customer rating is not shown at the Category view. Just the title, but not the stars.
    Please advice.

    Thanks in advance.

    7of9 Friend
    #504538

    Anybody any help?

    phong nam Friend
    #504544

    Hi 7of9,

    By default, both Virtuemart developers and we don’t publish the average customer ratings on category view. So that, you will need to customize the virtuemart to get your requirement. Backup your files and refer this thread at https://forum.virtuemart.net/index.php?topic=97611.0

    Note: On the JA Hawkstore template, you can edit the VM category view layout in templatesja_hawkstorehtmlcom_virtuemartcategorydefault.php file.

    7of9 Friend
    #504573

    Hi Leo,

    If that’s the case, shouldn’t the rate title be not published as well?

    phong nam Friend
    #504636

    Hi 7of9,

    You are right, we should hide the title “Average customer rating: ” on the category view. You can backup and open templatesja_hawkstorehtmlcom_virtuemartcategorydefault.php file, then comment or remove 252-261th line:

    <!-- The "Average Customer Rating" Part -->
    <?php if ($this->showRating) { ?>
    <span class="contentpagetitle"><?php echo JText::_ ('COM_VIRTUEMART_CUSTOMER_RATING') ?>:</span>
    <br/>
    <?php
    // $img_url = JURI::root().VmConfig::get('assets_general_path').'/reviews/'.$product->votes->rating.'.gif';
    // echo JHTML::image($img_url, $product->votes->rating.' '.JText::_('COM_VIRTUEMART_REVIEW_STARS'));
    // echo JText::_('COM_VIRTUEMART_TOTAL_VOTES').": ". $product->votes->allvotes;
    ?>
    <?php } ?>

    The red lines are the commented codes that you also can see in the category layout of VM component.

    7of9 Friend
    #504739

    Thanks, that did it.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  7of9 11 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum