1. Helix3
  2. Tuesday, 28 April 2020
Hi everyone,

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.
Attachments (1)
Accepted Answer
Solved.

I replaced code the file with this:


jQuery(function($) {
var steps = ".$maxrating.";
var parentPos= $('.rating .ratingbox').position();
var boxWidth = $('.rating .ratingbox').width();// nbr of total pixels
var starSize = (boxWidth/steps);
jQuery('.rating .ratingbox').mousemove( function(e){
var ratingboxPos= $('.rating .ratingbox').offset();

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 zip attachment

Replaced "components/com_virtuemart/views/productdetails/tmpl" with the php wile thats in the zip now.
Attachments (1)
  1. more than a month ago
  2. Helix3
  3. # Permalink
Responses (6)
Hi there,

Thanks for contacting us. Sorry for the inconvenience. Please provide me the Joomla administrator access via PM. I will check & get back to you after investigation.

-Thanks
  1. more than a month ago
  2. Helix3
  3. # 1
:( Please share the answer with us,

I read the forum on virtuemart.

https://forum.virtuemart.net/index.php?topic=112143.0

After the change with the script of that forum it's solved 50%.
So I downloaded istore_ii_quickstart_j3_v1.7.zip and shaper_istore_quickstart_j25.zip
to see how the default_reviews.php is written down in this templates.

Tried both, the outcome is not 100 stars any more but always 5 stars.
The thing is, Google Analytics complaines that there are no reviews on the website.
That is why I started to investigate. I don't no yet what the problem is but I will find out sooner or later.

I hope you can admit that there is a problem with the star rating with joomshaper templates and virtuemart.
Of course I tried the J2store templates, but j2store is missing parts that Virtumart does have.

Why did Joomshaper stoped woring with the virtumart webshop anyway?

Regards, Rop
  1. more than a month ago
  2. Helix3
  3. # 2
:( Please share the answer with us,

I read the forum on virtuemart.

https://forum.virtuemart.net/index.php?topic=112143.0

After the change with the script of that forum it's solved 50%.
So I downloaded istore_ii_quickstart_j3_v1.7.zip and shaper_istore_quickstart_j25.zip
to see how the default_reviews.php is written down in this templates.

Tried both, the outcome is not 100 stars any more but always 5 stars.
The thing is, Google Analytics complaines that there are no reviews on the website.
That is why I started to investigate. I don't no yet what the problem is but I will find out sooner or later.

I hope you can admit that there is a problem with the star rating with joomshaper templates and virtuemart.
Of course I tried the J2store templates, but j2store is missing parts that Virtumart does have.

Why did Joomshaper stoped woring with the virtumart webshop anyway?

Regards, Rop


Hi there, If you have problem about the review on the Template of shaper_istore_quickstart_j25 Template then you have to wait for the next update. Thanks
  1. more than a month ago
  2. Helix3
  3. # 3
I am using helix3
  1. more than a month ago
  2. Helix3
  3. # 4
I am using helix3


Hi there, This problem is not comes from Helix3. The Virtuemart extension has been overridden inside the Template HTML folder. That's why occurred the problem. Wait for the Template Update. Thanks
  1. more than a month ago
  2. Helix3
  3. # 5


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.