Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
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!
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!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024