Developer forum

Forum » Rapido » Product page with variants buggy

Product page with variants buggy

Gaetan Di Caro
Reply

Hello everyone,

 

I was eager to learn about variants management by using the wrap solution, but it seems that the product page implementation is a bit buggy.

Let's take this product : http://wrap.dynamicweb-cms.com/products-1/clothing/men/columbia-team-tech-t-shirt-234

The page is fine, except for the "@selectiontext" in the dropdown lists for selecting variants (a problem I don't have on my installed stolution).

Once I select a full variant (color + size), the left menu closes up and I can't see that I'm in the "men" category anymore (see screenshot 1).

Moreover, if I then press my browser's "back" button, the loading gif doesn't disappear, and the drop down lists still show the previous variant's values (see screenshot 2).

I'm using Firefox.

 

Thanks !

2016-01-11_09_03_26-Columbia_Team_Tech_T-Shirt_234.png 2016-01-11_09_05_28-Columbia_Team_Tech_T-Shirt_THE_LARGE.png

Replies

 
Nicolai Høeg Pedersen
Reply

ok, thanks for letting us know!

 
Nicolai Høeg Pedersen
Reply

You might want to take a look at where it is using the WRAP templates: http://wrap.dynamicweb-cms.com/products/clothing/men/columbia-team-tech-t-shirt-234

It seems someone changed the templates in that other website.

NP

 
Gaetan Di Caro
Reply

That's weird because I just checked and both the wrap and the bike shop are using the same template...

That said I got around the spinner problem by using this code :

$(document).ready(function () {
    if ($('.spinner').length > 0) {
        window.location.reload();
    }
});

Basically if on the page load I detect that the spinner is here, I simply reload it to get fresh data.

 
Gaetan Di Caro
Reply

Ha, and my fix for the group. Instead of this line :

location.href = Page + "&VariantID=" + id;

I do this :

var groupid = '';
if ('@GetString("Ecom:Group.ID")' != '') {
   groupid = '&GroupID=@GetString("Ecom:Group.ID")';
}

location.href = Page + "&VariantID=" + id + groupid;

 

You must be logged in to post in the forum