Change Text and style of Add to cart button

kindlebit
New Member
4 0 0

Hello there,

I am creating a Shopify app for changing a Text and style of Add to cart button. is there any API to do the same because here we need to change the text of add to cart button and style like background color, text color, and button border-radius, etc. Can someone help me to proceed with this?

 

Thanks

Replies 3 (3)
kindlebit
New Member
4 0 0

Is there any solution for this?

vix
Shopify Staff
Shopify Staff
537 103 112

You do not need an app for this, you can change this through the theme CSS or editor. If you are attempting to create a public app you can utilize JS to do this. The most related API would be our sections API https://help.shopify.com/en/api/reference/online-store/section-themes but this is for entire sections vs. one button. 

Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

kindlebit
New Member
4 0 0

Hello @vix 

Thanks for your reply 🙂


Can you please tell me how I can edit my product.template.liquid file? Here I need to put my custom code in between product.template.liquid file. can you please provide any API to update my liquid file with my custom code?

 

Wating for your response...

 

Regards
Gourav