Maximum quantity of any item per transaction
Hi all, I have an unusual question.
I need to limit the quantity of any item being purchased to 40 per transaction.
A sample scenario would be like this: I'm a user and I purchase 12 items of one product, another 12 from another product and 16 from a third product. I end up with 40 items total. In this case I can continue to check out. But, if I try to purchase more than 40 items I should be stopped by the system. As a user I shouldn't be allowed to purchase more than 40 items (of any products, that doesn't matter) on the same order. If I need to purchase 45 items for example, then I should place an order for 40 items and then another order for 5 items.
Is this possible? I guess I would have to deal with the "Total of Quantity" session if it exists, am I right here? How can I achieve this?
Thanks much!.