FROM CACHE - en_header

Variants don't change on product page in Debut Theme

Solved
Gregoris
New Member
7 0 0

Hello, i have tried different ways to fix this issue but it still remains a mystery. I haven't changed much from the product page but until recently the variants were working properly and all of a sudden they just stopped. I have tried changing or even removing and adding them again but still the problem is there. Any help on the code or any suggestion what might be the problem

Accepted Solutions (2)

Accepted Solutions
Jasoliya
Shopify Expert
4522 586 1139

This is an accepted solution.

Done check now

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here

View solution in original post

Jasoliya
Shopify Expert
4522 586 1139

This is an accepted solution.

Send me your store url

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here

View solution in original post

Replies 29 (29)
Jasoliya
Shopify Expert
4522 586 1139

Hi @Gregoris 

Send your store url

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Gregoris
New Member
7 0 0
Jasoliya
Shopify Expert
4522 586 1139

Open Asset->theme.js file and find below:

 

this.$container.trigger({
        type: 'variantSKUChange',
        variant: variant
      });
    },

Now remove last '},'

 

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Gregoris
New Member
7 0 0

Hello, unfortunately the problem remains. The variants are shown as usual but are not changing value, price or the image. this is the main problem

Jasoliya
Shopify Expert
4522 586 1139

Yes thats because of you have added js code and not closed  bracket properly so all massed with Js code

Add me as staff (jasoliyabrijesh123@gmail.com) i have to check code

 

Or try to add } after this:

 

 _updateSKU: function(variant) {
      if (variant.sku === this.currentVariant.sku) {
        return;
}

You have not added } after return

 

 

Note: add previous }, back

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Gregoris
New Member
7 0 0

Added you now. 

Jasoliya
Shopify Expert
4522 586 1139

Done check now.

Dont know why you added below code but that affecting because 'cache' cant find in Js still it generating issue but variants working now.

 cache.$parents.on('click.siteNav', function(evt) {
        var $el = $(this);
        if (!$el.hasClass(config.activeClass)) {
          // force stop the click from happening
          evt.preventDefault();
          evt.stopImmediatePropagation();
        }

        showDropdown($el);
      });
Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Gregoris
New Member
7 0 0

Hello yes that code was made in order to hover the menu without needing to click on the button. but anw the variants are working properly now. Unfortunately the hover dropdown menu is not working properly tho. 

 

Jasoliya
Shopify Expert
4522 586 1139

check now working  fine menu on hover

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Gregoris
New Member
7 0 0

Yea it is working but it is not working properly. if you hover on the menu you will see that when the mouse move down to the drop menu it disappears as it needs to be clicked to be opened. I want to hover on the menu and open the dropdown menu and when i move my mouse down to the dropdown menu to remain there. this was the issue i have and i tried changing values on margins etc but no result 

Jasoliya
Shopify Expert
4522 586 1139

This is an accepted solution.

Done check now

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Gregoris
New Member
7 0 0

Thank you, its done.

avei
New Member
1 0 0
jocelynkellner
Excursionist
27 0 1

I have the same problem with the menu after changing the code. Can you please describe what you did to fix it?

Jasoliya
Shopify Expert
4522 586 1139

Let me know what exact issue getting and send store url. 

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
jocelynkellner
Excursionist
27 0 1

@Jasoliya  this issue was resolved. thanks

jayson2
New Member
1 0 0

Can you help me also on the variants product, my exact problem is this, once I select variants all images on the thumbnail was replacing the featured image and not changing on the the variant image that I put on the admin product page.

 

 

 

Jasoliya
Shopify Expert
4522 586 1139

This is an accepted solution.

Send me your store url

Want to modify or custom changes on store hire me.
Want to convert visitor to buyers ? try This app.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
Vero72
New Member
2 0 0

I have the same issue. Please help. Thanks