VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jorgepracticum on February 09, 2016, 18:07:56 PM

Title: Rating doesn't publish
Post by: jorgepracticum 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:
$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
Title: Re: Rating doesn't publish
Post by: EsSa55 on September 10, 2018, 06:49:01 AM
Hello

Where exactly did you insert:

$data['published']=1;

?

Thanks
Title: Re: Rating doesn't publish
Post by: jenkinhill 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.