Modify default message to custom message in shopify?.

Highlighted
New Member
2 0 0

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

0 Likes
Highlighted
Shopify Partner
351 38 73

Hello @siddiqui786 

Instead of {{ count }} , see if {{ quantity_available }} will work.

0 Likes
Highlighted
New Member
2 0 0

Hi MelsMojoBob We have a try the same thing but getting similar error message.

0 Likes