How could I change the buy button text on my store?

Solved

How could I change the buy button text on my store?

asajce
Tourist
8 0 3

asajce_0-1715766032970.png

I can't seem to find how to change the "BUY IT NOW" text 

 

store url: www.tuttocapsule.lt

theme: cornerstone

Accepted Solution (1)

BSSCommerce-HDL
Shopify Partner
2305 835 908

This is an accepted solution.

Hi @asajce

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

BssTechVenture_1-1715767192549.png

 

Step 2: Search file theme.liquid 

BssTechVenture_2-1715767204955.png

 

Step 3: Insert the below code at the bottom of the file -> Save

 

 

{% if template.name == 'product' %}
    <script>
       window.onload = () => {
            let buy_it_now = document.querySelector('.shopify-payment-button__button.shopify-payment-button__button--unbranded');
           if(buy_it_now) {
              buy_it_now.textContent = "abc"
           }
       }
    </script>
{% endif %}

 

 

 

Here is result: 

BssTechVenture_0-1715767129117.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Reply 1 (1)

BSSCommerce-HDL
Shopify Partner
2305 835 908

This is an accepted solution.

Hi @asajce

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

BssTechVenture_1-1715767192549.png

 

Step 2: Search file theme.liquid 

BssTechVenture_2-1715767204955.png

 

Step 3: Insert the below code at the bottom of the file -> Save

 

 

{% if template.name == 'product' %}
    <script>
       window.onload = () => {
            let buy_it_now = document.querySelector('.shopify-payment-button__button.shopify-payment-button__button--unbranded');
           if(buy_it_now) {
              buy_it_now.textContent = "abc"
           }
       }
    </script>
{% endif %}

 

 

 

Here is result: 

BssTechVenture_0-1715767129117.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now