Whenever the customer chooses a variant (ex. size 1 or size 2. different price breaks for different sizes), theres a price break table that is displayed. The table stays on the price breaks for size 1, and will not change to the correct table until you manually refresh.
Is there any way to auto refresh the page when the customer changes the variant/size? I am using the Masonry theme and using Bold Custom Pricing- Wholesale.
Use this script, it will reload page every-time when variant change. but may be you have to make changes in it a/to your theme code.
You can use in theme.js or related file a/to theme you used.
I have a code the creates a link to a tool based on the product id, when a variant is chosen I need the code to refresh so that the new link is generated.
I have pasted this code within the product.liquid page of my site and it works great to change the image to the variant image in Firefox. However, the issue I’m running into is within Chrome and Safari, when the page reloads, the “checked” variant stays on the first variant on the page even though the image and the product ID within the url is correct (and if you hit ‘add to cart’ the correct product is added). Is there a way to show the correct variant selected in the list?
This part is not covered in this script. btw to do this you have to implement a liquid logic.
If url contains specific variant then make the specific variant selected.
Now: This is just an idea you can implement it a/to theme code you are using.
This part is not covered in this script. btw to do this you have to implement a liquid logic. If url contains specific variant then make the specific variant selected. Now: This is just an idea you can implement it a/to theme code you are using.
Thank you for the quick reply! How would I go about achieving this?