We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Reinos Store Limit Quantity you can add to cart?

Development and Programming

User 1EKsh2eFf's avatar
User 1EKsh2eFf
8 posts
one week ago
User 1EKsh2eFf's avatar User 1EKsh2eFf

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
}
       
User olbp8DKG's avatar
User olbp8DKG
9 posts
one week ago
User olbp8DKG's avatar User olbp8DKG

In this situation I think max_qty translates to the maimum number you can add to cart at a time.

I don’t think it has a tag to test if a product is already in the cart, so you can show/hide the add button with a conditional - would make a good feature request.

       
User N1gHLNZ4's avatar
User N1gHLNZ4
10 posts
one week ago
User N1gHLNZ4's avatar User N1gHLNZ4

You still need to add a max=”1” in your input field. the add to cart tag will limit to 1 I think even even if user put more in the I put field…

       
User 1EKsh2eFf's avatar
User 1EKsh2eFf
8 posts
one week ago
User 1EKsh2eFf's avatar User 1EKsh2eFf

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.

       
User 1EKsh2eFf's avatar
User 1EKsh2eFf
8 posts
one week ago
User 1EKsh2eFf's avatar User 1EKsh2eFf

Thanks for the suggestions

       
User TejJlyGn's avatar
User TejJlyGn
1 posts
one week ago
User TejJlyGn's avatar User TejJlyGn

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.

       
User 1EKsh2eFf's avatar
User 1EKsh2eFf
8 posts
one week ago
User 1EKsh2eFf's avatar User 1EKsh2eFf

Yes. Same product and updated to the latest yesterday just before this

       
User 1EKsh2eFf's avatar
User 1EKsh2eFf
8 posts
one week ago
User 1EKsh2eFf's avatar User 1EKsh2eFf

Version 3.7.2. this is simple only 1 item available per product with no modifiers

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.