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

Solved
karinorage
Tourist
4 0 0

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)

Accepted Solutions
LitExtension
Shopify Partner
1975 329 404

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 - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

Replies 2 (2)
LitExtension
Shopify Partner
1975 329 404

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 - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!

View solution in original post

karinorage
Tourist
4 0 0

Hi @LitExtension


It sure did!

Thank you so much, you made my day!

Kind regards,
Karin