Change "Buy it now" product button text [Dawn Theme]

aprabowo
New Member
2 0 0

Hi everyone!

Previously, I had to change the "add to cart" button text (the white button) into "donate" in the locales >> en.default.json. But, I changed my mind, because it was directed to the cart section and I wanted to skip that. So, I just want the "buy it now" button to only appear and change the text into "donate", but I couldn't find it in the locales section. Could somebody help me with this matter? Thank you so much in advance!1636337915412.jpg

 

Replies 3 (3)
Pallavi
Shopify Expert
2458 411 532

Hello There,

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find theme.js and paste this at the bottom of the file:

setTimeout(function(){
$('.shopify-payment-button__button').text('SHOP IT NOW');
},1000),
Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
aprabowo
New Member
2 0 0

Hi!
Thanks for the reply, but I couldn't find the location of theme.js. There's only theme.liquid on the Layout folder. Could you tell me the exact location? Thanks!

sleeping
New Member
1 0 0

@Pallavi 

Dawn theme uses a .liquid theme file.

This means adding a .js function will not work.

Do you have a fix that works for dawn?

Thanks!