I am working on a website that had sit stil in a view years. Now the cusomer wants it to "run online" ( Joomla setting) and sell products
I used helix 3 at te time. Now I fully upgraded the website. The shop runs on virtuemart.
Below a product is (also) a review possebility. When I test the reviews and hit an start, suddenly I get 200 stars :-) Now that is a super postive review!
But without my joke, I don't know how to trubbelshoot it, and want the formiliar 5 stars.
There is an existing overwrite in the template called: "com_virtuemart/productdetails/default_review.php".
I tried the solution from this webpage: ->>
Link to the virtuemart forum
I am wondering if this pease of script is effecting the problem?
$reviewJavascript = "jQuery(function($) {
var steps = ".$maxrating.";
var parentPos= $('.rating .ratingbox').position();
var boxWidth = $('.rating .ratingbox').width();// nbr of total pixels
var starSize = (boxWidth/steps);
var ratingboxPos= $('.rating .ratingbox').offset();
jQuery('.rating .ratingbox').mousemove( function(e){
var span = jQuery(this).children();
var dif = e.pageX-ratingboxPos.left; // nbr of pixels
difRatio = Math.floor(dif/boxWidth* steps )+1; //step
span.width(difRatio*starSize);
$('#vote').val(difRatio);
//console.log('note = ',parentPos, boxWidth, ratingboxPos);
});
});
";
See the outcome on the webshop product page in the picture I sent.