VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: encreplus on November 21, 2018, 16:28:03 PM

Title: rating stars
Post by: encreplus on November 21, 2018, 16:28:03 PM
Good day ,

The rating stars in the review tab are working ok ... but the stars beside product name show none ... when i click on the tab the 5 stars are showing ...

what im doing wrong lol
Title: Re: rating stars
Post by: jenkinhill on November 21, 2018, 17:43:39 PM
Template?   Do they show with Protostar?
Title: Re: rating stars
Post by: encreplus on November 21, 2018, 18:49:09 PM
Sorry forgot to mention ... default template dont wotk also ...

Title: Re: rating stars
Post by: encreplus on November 21, 2018, 18:50:11 PM
Quote from: encreplus on November 21, 2018, 18:49:09 PM
Sorry forgot to mention ... default template dont wotk also ...



No only show in the section of review ... not in the upper section
Title: Re: rating stars
Post by: jenkinhill on November 22, 2018, 10:15:37 AM
Versions? URL?
Title: Re: rating stars
Post by: GJC Web Design on November 22, 2018, 12:17:27 PM
image?
Title: Re: rating stars
Post by: encreplus on November 22, 2018, 13:30:54 PM
here is an exmample : https://dr-ink.ca/inkjet-cartridges/hp/hp-deskjet-series/hp-deskjet-d1660/2-ink-cartridge-compatible-hp-60xl-xxl-detail.html
Title: Re: rating stars
Post by: GJC Web Design on November 22, 2018, 13:46:56 PM


you need to find why this is   empty($product->rating)

   if (empty($product->rating)) {
   ?>
      <div class="ratingbox dummy" title="<?php echo vmText::_('COM_VIRTUEMART_UNRATED'); ?>" >

      </div>
   <?php
   } else {

because your page is showing

<div class="ratingbox dummy" title="Not Rated Yet">
</div>
Title: Re: rating stars
Post by: encreplus on November 22, 2018, 13:59:37 PM
it does also the same with Protostar
Title: Re: rating stars
Post by: encreplus on November 22, 2018, 14:06:39 PM
Quote from: GJC Web Design on November 22, 2018, 13:46:56 PM


you need to find why this is   empty($product->rating)

   if (empty($product->rating)) {
   ?>
      <div class="ratingbox dummy" title="<?php echo vmText::_('COM_VIRTUEMART_UNRATED'); ?>" >

      </div>
   <?php
   } else {

because your page is showing

<div class="ratingbox dummy" title="Not Rated Yet">
</div>

In wich file i will find this code ??
Title: Re: rating stars
Post by: GJC Web Design on November 22, 2018, 16:32:43 PM
this is the standard product detail ratings sublayout ....

but that's not the point -- you need to find  why YOUR $product->rating is empty

on a standard install appears to work fine

http://test.gjcwebdesign.com/joomla390/index.php/headpiece/cowboy-hat-detail
Title: Re: rating stars
Post by: encreplus on November 22, 2018, 17:22:00 PM
arf ... so probably conflict or main file ... because no matter the template it does that ....
Title: Re: rating stars
Post by: GJC Web Design on November 22, 2018, 17:44:13 PM
not a  "conflict" - this is php  .. u need to backtrace the object to find where the rating isn't loaded or is it even being set?
Title: Re: rating stars
Post by: encreplus on November 22, 2018, 18:07:28 PM
arf ok ... will disable this rating review ... will decide what will do later
Title: Re: rating stars
Post by: encreplus on November 22, 2018, 18:16:52 PM
fixed ... i did re install all core files and it works now ;)