Personalized checkout and custom promotions with Shopify Scripts
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I added max product quantities/weights to main-cart-items.liquid in my theme, and I would like to change this error message ("Value must be [max]" on the cart item's quantity field) if possible, but I have no clue where it's coming from, since it's not in en.default.json or anything. It displays when the quantity is greater than the max in quantity__input . Where these messages come from, and is it possible to change or replace them?
I see that in cart.js the updateQuantity function includes
message = window.cartStrings.quantityError.replace('[quantity]', updatedValue);
Is
window.cartStrings.quantityError
related to this message, or is it something else?
The alert is a plain box/tooltip that displays when you hover over the quantity field or a styled box that pops up below it with an exclamation point in a yellow square when you try to proceed to checkout.
Thanks