Shopify themes, liquid, logos, and UX
Hi,
We need to modify the default message to the custom message in I18n. I have to change the message through the Shopify admin. here is an example:
Default Message: " you can't add more {{name}} to the cart".
Custom Message: "Sorry, We do not have enough stock on hand for the quantity you select. Available Stock : {{count}} "
there is display the error message I18n Error: Missing interpolation value "count" for "Sorry, We do not have enough stock on hand for the quantity you select. Available Stock : {{ count }}"
Thanks in advance
Hi @David281
You could change the wording of this field by editing your theme languages:
I hope this helps you.
If your seeing this message on the frontend and your modifying the locale translations you also need to modify the theme code to pass the item count aka {{ count }} to the locale key using the "| t: " translation filter.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024