Limiting Quantity Per Product

Posted By djjohnson Thu 22 May 2014
Add to Favorites0
Author Message
djjohnson
 Posted Thu 22 May 2014
Supreme Being

Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)Supreme Being - (25,561 reputation)

Group: Forum Members
Last Active: Thu 26 Feb 2015
Posts: 45, Visits: 103
Does anyone know how to limit the quantity in cart and add to cart to 1 per product? Or do I need to write custom code to accomplish this? I have already added IsService to the product in the tblKartrisObjectConfig to control if they can order more than 1 product at a time. I added it to the product level because all versions are still a service that should only allow 1 as the quantity per product that IsService.

D.J. Johnson
V.P. Development and Operations
NTS Services Corp
DataBackup.com
Paul
 Posted Sun 25 May 2014
große Käse

große Käse - (522,694 reputation)große Käse - (522,694 reputation)große Käse - (522,694 reputation)große Käse - (522,694 reputation)große Käse - (522,694 reputation)große Käse - (522,694 reputation)große Käse - (522,694 reputation)große Käse - (522,694 reputation)große Käse - (522,694 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
There isn't presently a way to limit a product to one per basket. I think the closest that could be done without modification is to set stock tracking on and only have one item in stock. If someone tried to add more, it would prevent them and tell them there is only one in stock. You could change that message. Obviously it's not perfect, you'd need to reset the stock back to one after a purchase.

But you could modify the basketBLL to support this, I don't think it's a huge job. If you're not using stock tracking elsewhere, you could modify the checkout so as not to adjust stock levels down after purchase. Or otherwise, you could add a new object config setting to products, and then if this was set to true, pick that up in the basketBLL and only allow the quantity for that item to be 1.


--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top