Closed (fixed)
Project:
Ubercart Restrict Qty
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2009 at 03:30 UTC
Updated:
12 Mar 2015 at 15:11 UTC
Jump to comment: Most recent
Comments
Comment #1
stackpr commentedI don't think this module would get you there since it is designed to validate items as they are being added to the cart.
You could implement hook_order() and test the products when the op is load. The hook is not called until you get to the checkout stage. If there is a problem with the product count at that point, you could drupal_set_message('error message') and then drupal_goto('cart'). It would not be very elegant, but you could effectively prevent a user from doing anything to an order that has the wrong number of products.
Comment #2
raulmuroc commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).