VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: nordmograph on October 12, 2012, 14:49:39 PM

Title: vm_maximum_rating_scale missing from configuration
Post by: nordmograph on October 12, 2012, 14:49:39 PM
Hello

Looking at the product details view, I found

$maxrating = VmConfig::get('vm_maximum_rating_scale', 5)

but could not find the parameter in the backend config page
Title: Re: vm_maximum_rating_scale missing from configuration
Post by: bytelord on October 13, 2012, 00:22:41 AM
Hello,

There is not parameter in the backend yet for maximum rating, for that reason is automatically receives "5" (5 stars).

Regards
Title: Re: vm_maximum_rating_scale missing from configuration
Post by: nordmograph on October 14, 2012, 18:23:49 PM
Yes thank you for your reply.

This is the reason why I posted.
I also checked in the config field of the #__virtuemart_configs table this parameter is missing (not added yet)

I want to have a 10 stars rating so should I add the parameter to that DB field? if so should I add something like
|vm_maximum_rating_scale=s:1:"10";

It's not working. Maybe I should not even try and wait ...
Title: Re: vm_maximum_rating_scale missing from configuration
Post by: bytelord on October 15, 2012, 00:29:30 AM
Hello,

I am not exactly sure, but you could find where in the backend vm_maximum_rating_scale set's to 5 and change it. Also on front templates code that effects also and your css styling (1-5 star sprite images or use the same... 5 stars, 5=max, e.g 2 x 10 votes)

Regards