NOTE: I have discovered that the issue may be related to the following:
When hovering over a star to select the rating, the "value" loaded STARTS at 25 (for 1 star)... Therefore, the five star values are: 26 / 27 / 28 / 29 / 30.
<input type="hidden" id="vote" value="26" name="vote">
So, I am trying to find a way in the code for file default_reviews.php to basically set the $maxrating variable to ($maxrating - 25). However, I do not know enough about coding to make that happen. Here is the portion of code that I need to change the calculation in:
// Customer Reviews
$review_editable = true;
if ($this->allowRating || $this->allowReview || $this->showRating || $this->showReview) {
$maxrating = VmConfig::get( 'vm_maximum_rating_scale', 5 );
$ratingsShow = VmConfig::get( 'vm_num_ratings_show', 3 ); // TODO add vm_num_ratings_show in vmConfig
$stars = array();
//$showall = vRequest::getBool( 'showall', FALSE );
$ratingWidth = $maxrating*24;
for( $num = 0; $num<=$maxrating; $num++ ) {
$stars[] = '
<span title="'.(vmText::_( "COM_VIRTUEMART_RATING_TITLE" ).$num.'/'.$maxrating).'" class="vmicon ratingbox" style="display:inline-block;width:'. 24*$maxrating.'px;">
<span class="stars-orange" style="width:'.(24*$num).'px">
</span>
</span>';
}
Anyone able to show me the correct way to change that code to alter the $maxrating variable?