anyone know of an existing way to restrict the quantities ordered to a specific increment? I want to allow mixing and matching of various items but at checkout make sure there are 3, 6, 9, 12 etc. items ordered.

Comments

stackpr’s picture

I 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.

raulmuroc’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Closing 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).