News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

rating stars

Started by encreplus, November 21, 2018, 16:28:03 PM

Previous topic - Next topic

encreplus

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

jenkinhill

Template?   Do they show with Protostar?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

encreplus

Sorry forgot to mention ... default template dont wotk also ...


encreplus

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

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation


GJC Web Design



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>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

encreplus

it does also the same with Protostar

encreplus

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 ??

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

encreplus

arf ... so probably conflict or main file ... because no matter the template it does that ....

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

encreplus

arf ok ... will disable this rating review ... will decide what will do later

encreplus

fixed ... i did re install all core files and it works now ;)