Price next to Add to Cart button - but the price disappear after selecting different variant picker

Price next to Add to Cart button - but the price disappear after selecting different variant picker

akilh
Visitor
3 0 0

i added the price next to the add to cart button 

akilh_0-1711854888168.png

it is showing the price correct when i open the product 

akilh_1-1711855010549.png


but when i change the size (variant picker)
the above price is changing but the button is not showing the price at all

akilh_2-1711855147424.png

 

 

Reply 1 (1)

Sweet_Savior_3
Shopify Partner
1336 102 138

Hello @akilh 

 

Welcome to Shopify Community.

 

It did worked on you on first page load because you have added a liquid code in the file but once the variant is selected JS is worked on it. 

So upon variant change, you have to alter the JS code. 

 

If you are not familiar with code edits then rather ruining the theme, you can seek help of a developer to help you at reasonable cost.

 

Let me know if I can help you in anyway.

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!