I have an item setup to have a max-quantity of “4”, but also have a custom option. It seems that the max-quantity doesn’t take effect except for the default option as users are able to add multiple line items, but each line item can have a max quantity of “4”. What I would like to do is prevent any individual user from ordering more than 4 of my item regardless if they are stacked or not and regardless of what option they select.
Is there a way to do this?
<a ... class="... snipcart-add-item"
data-item-id="my-item"
data-item-price="6.00"
data-item-weight="100"
data-item-length="8"
data-item-height="4"
data-item-width="1"
data-item-max-quantity="4"
data-item-custom1-name="Options"
data-item-custom1-options="None|Option1[+2.00]"
data-item-custom1-value="None"
data-item-url="/products/my-item"
... </a>
Thanks for the help and any available pointers here. I can’t seem to enforce the amount that a user can check out with unless after entering payment and shipment information there is another cart validation attempt?