Solved

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

asajce
Visitor
3 0 1

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)

BSSTech-Venture
Shopify Expert
372 86 96

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 😍😍

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

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development

View solution in original post

Reply 1 (1)

BSSTech-Venture
Shopify Expert
372 86 96

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 😍😍

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

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development