Add Default Qty Restrictions Per Each Product Class
| Project: | UC Restrict Qty |
| Version: | 6.x-1.1 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | ubercart limit cart, ubercart module add to cart, ubercart single unit product |
Jump to:
I'd like to see the qty restriction configurable for product classes so that you can set a class to have a default qty restriction. I am using this for "course registration" and it never makes sense (in our business case) to allow a user to buy more than one (at a time, or ever, though that is a different story for a different feature).
What I am suggesting is that when you create a new product class you would be able to set a default restrict qty value for all products of that product class, though you could override it on a per product basis.
One other thing is that it would be great to have the option to "hide qty if qty restriction is 1" in order to hide the qty from the cart and confirmation screens.

#1
I'd be interested in this too. Going to check out the code and see if I can make heads or tails of how to implement it.
EDIT: Looks like this might be easier to implement entirely separately than to graft onto this module.
#2
@greenbeans: Why do you say that? This module is specifically for restricting quantity. New features (including this one) should be added to this module, not created separately, elsewhere. I will try to look into adding this over the next week.
#3
Marked #404426: Restricted Quantity should be parameterized as a duplicate.
#4
Sorry, I meant more that I didn't see a way to do it by reusing the functionality already in the module, not that it should be in a separate one. Let me know if I can help you at all with the implementation.
#5
Please see notes at #348049: Configurable Qty for initial development of this. IT doesn't yet provide class defaults, but does let you configure the quantity at the product level. Please test and report any problems over at the other thread.
#6
Potential solution for this while something more comprehensive comes about.
I'd like to see the qty restriction configurable for product classes so that you can set a class to have a default qty restriction. I am using this for "course registration" and it never makes sense (in our business case) to allow a user to buy more than one (at a time, or ever, though that is a different story for a different feature).
With this module you can go the "Product/Plan" and go to the features, and click the checkbox to empty the cart.
http://drupal.org/project/uc_atctweaks
I have a custom template for the content type i wish only to be purchased. I guess you could hide the add to cart or a redirect based on content type or have that taken care of inside the template
Hope that helps
#7
I don't think that the patch or notes in http://drupal.org/node/348049 Configurable Qty really address the issue raised in this ticket, which is to allow for default qty restrictions on products and specifically by product class, which is not to say a total cart restriction, rather a specific product restriction.
Currently the act of adding a restrict qty feature to a product requires that the product creator go to a completely different tab and add this feature thing. I understand for extensibility purposes, perhaps, why restrict qty is a product feature, but it would be far more user friendly if the qty restriction was included in the main product information field set for every product as opposed to obscured on some separate tab.