-
AuthorPosts
-
7of9 Friend
7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
September 2, 2013 at 12:10 pm #190222Hi,
The Average customer rating is not shown at the Category view. Just the title, but not the stars.
Please advice.Thanks in advance.
7of9 Friend7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
September 4, 2013 at 10:23 am #504538Anybody any help?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 4, 2013 at 10:49 am #504544Hi 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 Friend7of9
- Join date:
- December 2010
- Posts:
- 579
- Downloads:
- 81
- Uploads:
- 66
- Thanks:
- 162
- Thanked:
- 25 times in 3 posts
September 4, 2013 at 1:24 pm #504573Hi Leo,
If that’s the case, shouldn’t the rate title be not published as well?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 5, 2013 at 4:22 am #504636Hi 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.
1 user says Thank You to phong nam for this useful post
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by 7of9 11 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum