Closed chrisjrn closed 8 years ago
Ideas:
set_quantities
is a batch method (takes product/quantity pairs)
Product
/error message pairs so that errors can be reported to formsset_quantity
is refactored to run set_quantities
internallyset_quantities
runs the testsget_enabling_conditions
returns each restriction on the products and categories provided (similar to how available_discounts
works)Fixed.
At the moment everything is re-tested on adding each product. This makes testing cart category limits rather difficult, and the enabling conditions on each product gets re-tested each time. Let's make that more efficient.