Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Extra item not removed when the coupon is removed from the cart.
$added_order_items array is always null in the clearOrderItems method.
Steps to reproduce
- create "Extra Items with Percentage Off (Per Item)" promotion type
- apply coupon the cart
- remove coupon from the cart
Comment | File | Size | Author |
---|---|---|---|
#5 | set-order-item-promotion-id-3232658-5.patch | 2.56 KB | leevan |
#2 | set-order-item-promotion-id-3232658-1.patch | 787 bytes | leevan |
Comments
Comment #2
leevan CreditAttribution: leevan at DevBranch, Drupal Ukraine Community commentedPatch to fix it
Comment #3
leevan CreditAttribution: leevan at DevBranch, Drupal Ukraine Community commentedComment #4
abrammHi leevan,
Your suggestion sounds logical but I think it'd make more to move setData to prepareExtraItem().
Comment #5
leevan CreditAttribution: leevan at DevBranch, Drupal Ukraine Community commentedHi abramm! Fixed
Comment #7
abrammThanks. Pushed to 8.x-1.x.