Author Topic: Rating doesn't publish  (Read 1130 times)

jorgepracticum

  • Beginner
  • *
  • Posts: 40
  • A beginner
  • VirtueMart Version: 3.0
Rating doesn't publish
« on: February 09, 2016, 18:07:56 pm »
Hi
I did another post asking about some problems like this. But now, I'm sure what is the problem
Ok, I'll inform about my research and my problem
The problem is when a user writes his comment and rates the product, the rating star never loads the information of the rating. So the rating stars always are grey
I saw that the column published in the table #_virtuemart_ratings never writes a true (1) there. So I started to look for where the component stores the information in that table. I've seen that the component stores the information in the function bindChecknStoreNoLang in the file administrator/components/com_virtuemart/helpers/vmtable.php. The problem is that when the component stores the data, the data array hasm't got a parameter with the value of published, so the componente stores it with the value 0. I write this line before the componentes stores the data:
Code: [Select]
$data['published']=1;When I writed that, the component stores the data correctly with value 1 in the published column and in the front end the rating star loads properly   ;D ;D
So I ask you why is happening this to my component?
Regards

PD: I have checked the option Autopublish comments

EsSa55

  • Jr. Member
  • **
  • Posts: 84
    • 4FootyFans & 4MovieTVmusicFans
  • Skype Name: talk2-4footyfans
  • VirtueMart Version: Live: 3.4.2
Re: Rating doesn't publish
« Reply #1 on: September 10, 2018, 06:49:01 am »
Hello

Where exactly did you insert:

$data['published']=1;

?

Thanks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27957
  • Always on vacation
    • Jenkin Hill Internet
Re: Rating doesn't publish
« Reply #2 on: September 10, 2018, 10:38:18 am »
You have replied to a message from 30 odd months ago!

There is no issue with current VM versions displaying star ratings and reviews using the VM default templates.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.7 10374 on Joomla 3.9.23 PHP 7.4.12