Hi all,
I am using the Dawn Theme, this is a duplicate of a several years old thread not having a solution.
When a customer makes changes to their cart during checkout and exceeds the available stock they get the notification “You can’t add more {{ name }} to the cart.” I would like to tell the customer what stock quantity is left so that they don’t have to try different quantities until they hit the available stock quantity.
This works for a different notification: When a customer happens to have the exact stock quantity of an item in their cart and try to increase its quantity, they get the following message: “All {{ count }} {{ name }} are in your cart.” With {{ count }} showing the available stock.
Trying to use {{ count }} in the “Too many items in cart” notification ends up with a “missing interpolation value”" for {{ count }}. Any idea how to fix this or access the {{ left in stock }} variable in the “Too many items in cart” field?