Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Edit max quantity error message on cart item "Value must be [max]"

Edit max quantity error message on cart item "Value must be [max]"

crmanjerovic
Shopify Partner
2 0 0

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?

quantity-limit.png

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

Replies 0 (0)