Solved

Change the "Add" text on the add-to-cart button to "Added" after clicking - Debut theme

karinorage
Shopify Partner
17 0 3

Hi,

I am using the ajaxify-cart method where a customizer stays on the product-page when clicking on the "add to cart"-button.
(https://community.shopify.com/c/shopify-design/product-pages-stay-on-the-product-page-after-adding-p...)

Actually, I use it on a collection page list-style with "Add"-button for each product.
In my language is "Add" = "Voeg toe". See attached document.
After adding a product the succeed-message appears, and will stay visible another product is added, then that particular product will show the succeed-message etctera.
But what I am looking for is a solution that after a product is added,  the Button text is changed to "Product is added".
Has anyone a solution for this?

Thanks in advance,

Karin

Accepted Solution (1)

LitExtension
Shopify Partner
4860 1001 1132

This is an accepted solution.

Hi @karinorage,
Go to ajaxify-cart.liquid file, find '_setText($addToCartBtn,_config.addToCartBtnLabel);' and change code: https://i.imgur.com/ANJawx0.png 
Code:

_setText($addToCartBtn,'Product is added');

 Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Replies 2 (2)

LitExtension
Shopify Partner
4860 1001 1132

This is an accepted solution.

Hi @karinorage,
Go to ajaxify-cart.liquid file, find '_setText($addToCartBtn,_config.addToCartBtnLabel);' and change code: https://i.imgur.com/ANJawx0.png 
Code:

_setText($addToCartBtn,'Product is added');

 Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
karinorage
Shopify Partner
17 0 3

Hi @LitExtension


It sure did!

Thank you so much, you made my day!

Kind regards,
Karin