Problem/Motivation
commerce_cart_order_empty() only removes product line items when emptying the cart but provides a hook to modify the $order. Without implementing this hook, the cart order still contains discount line items.
Proposed resolution
Implement hook_commerce_cart_order_empty($order)
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | implement-2465659-3.patch | 1.06 KB | joelpittet |
Comments
Comment #1
joelpittetHere's my take on how this would look:
Comment #2
bojanz commentedMakes sense, can you roll a patch please?
Comment #3
joelpittet@bojanz Sure thing thanks for the review, seems to be working well so here's a patch.
Comment #4
bojanz commentedThank you for the quick response.