On my default product page the variants won’t change price when selected. Also the add to cart button does not work either unless a page refresh occurs.
Hello @OzWargaming ,
There is JS conflict in your store.
I suggest revert the changes you did recently and the issue will fixed automatically.
But still if you need help feel free to drop a message and I’l help you.
Regards
Guleria
I’m not sure what any of this means tbh
I have messaged you. Thankyou
Yes reverting to last changes should fix the issue, have recently updated the theme?
Here, the theme JS code expects every variant to have a featured_image.
If it’s not assigned, the code will fail and prevent the rest of the function (lines 981-…) to update price:
Change line 977 to this:
if (this.currentVariant?.featured_image?.src)
$('.stickCtImg').attr('src', this.currentVariant.featured_image.src+'&width=100');
As others remarked, there is more problematic JS code, but not really affecting this particular issue.
amazing thankyou that worked perfectly

