News:

Looking for documentation? Take a look on our wiki

Main Menu

vm_maximum_rating_scale missing from configuration

Started by nordmograph, October 12, 2012, 14:49:39 PM

Previous topic - Next topic

nordmograph

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

bytelord

Hello,

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

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

nordmograph

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

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!