How can I include product price in the add to cart button?

How can I include product price in the add to cart button?

PRETTYFRIDAYS
Pathfinder
197 0 35

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
1079 132 203

Hi @PRETTYFRIDAYS 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! ❤️


PRETTYFRIDAYS
Pathfinder
197 0 35

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

sahilsharma9515
Shopify Partner
1079 132 203

Hi @PRETTYFRIDAYS 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! ❤️