New Shopify Certification now available: Liquid Storefronts for Theme Developers

Adding the price to add to cart button

fleuparis
Tourist
94 0 22

Hello! I just made my shopify store and i want my product price inside of the add to cart button. It would be much appreciated if somebody would help me!

Example: add to cart  - €15

theme: sense

Replies 3 (3)
sahilsharma9515
Shopify Partner
501 54 80

Hi @fleuparis You can do it by adding this code in the add to cart button

{{product.price}}

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


fleuparis
Tourist
94 0 22

Hey where do i need to put this code? Thanks for your help btw!

sahilsharma9515
Shopify Partner
501 54 80

Hi @fleuparis You need to check from where add to cart button is displaying, usually it use to be in product.liquid, but different theme has different file from where they use to display the button. So you need to check in your theme that from which file it is displaying.

 

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️