image and price don't change on variant change on product page

image and price don't change on variant change on product page

TrendBlend
Pathfinder
196 0 27

Hello,

when I change my variant using my sticky add to cart app, nothing changes on the product page. The app says it is not happening because of the app since the variant url does change. Can someone please help me with this.

Schermafbeelding 2024-09-30 095440.png

It does show the correct price and image after refreshing but it should display correctly on variant change.

In my app sticky add to cart widget the image and price change correctly. URL: MagCharge – TrendBlend

Replies 6 (6)

Shadab_dev
Shopify Partner
294 13 37

Well it means it is changing but changes are not live until page loads. This is a problem from the app. 

If this is helpful, please Like and Accept the solution.
Buy me Coffee, if you feel i was helpful. Definitely a motivation to carry out gutting solutions. Need help with shopify liquid or any project in web dev- Feel free to Email Me

Thanks
TrendBlend
Pathfinder
196 0 27

The app creators said this: 

Were you able to read our previous email regarding the image on the sticky bar? I’ve noticed the issue, and it seems like the app updates the URL with the correct variant ID, but the theme isn’t updating the variant state.

Shadab_dev
Shopify Partner
294 13 37

May be the app code clashes with some part of the theme code.

If this is helpful, please Like and Accept the solution.
Buy me Coffee, if you feel i was helpful. Definitely a motivation to carry out gutting solutions. Need help with shopify liquid or any project in web dev- Feel free to Email Me

Thanks
TrendBlend
Pathfinder
196 0 27

Hello, there is no product.liquid file, which file should I put the code in? 

TrendBlend
Pathfinder
196 0 27

Schermafbeelding 2024-09-30 141252.png

Hello, there is no file such as 'product.liquid'

TrendBlend
Pathfinder
196 0 27

Hello, I do have a product.json file: Sep 30 4:18 PM - Codeshare. 

But I'm not really sure where to add the code, it gave a lot of errors when a pasted it at the bottom of the file