Using Reinos Store… There is a parameter for exp:reinos_store:add_to_cart called max_qty that is supposed to limit the quantity of a particular item that can be added to a cart (in my case I need to limit everything to 1). but it seems to not do what it is supposd to (I can add as many of an item to a cart) Has anyone seen this? @reinos
Just to be sure I’m using this right:
{exp:reinos_store:add_to_cart
entry_id="{layout:entry_id}"
max_qty="1"
ALL MY OTHER PARAMS
}OK… I tried that & still it lets me add multiples of an item to the cart where it should only allow 1 From the docs: “Control the max qty of a single item in the cart. This could be usefull if you have a product that can be bought just once or limited per user.”
Maybe a bug or just an inaccurate description?
My use is a store that sells corals for saltwater aquariums. Each coral is unique and there is only one of each.
max_qty set the limit of a single product. So if you set max_qty to 1, there will be just 1 item in the cart.
What @benoitlemay is pointing out, is that you can also set max=”1” on your input so it can be captured by your browser. This however is still Frontend validation.
@russ_kern What version are you running and are you sure deal with same product. As a product with a different modifier is a new product.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.