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.
Commerce Coupon Percentage Amount doesn't create an individual line item when a coupon is applied, instead it adds a discount price component to each line item. The function commerce_coupon_remove_coupon_from_order() doesn't cater for this case.
I have found a solution for this, although because I also found I need to apply the patch from https://drupal.org/comment/7633515#comment-7633515 I haven't tested my solution in its absence.
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_coupon-price-component-removal-issue-2163461-2.patch | 819 bytes | alfaguru |
Comments
Comment #1
alfaguru CreditAttribution: alfaguru commentedHaven't the time to create a patch so just pasting the code in here for now.
Comment #2
alfaguru CreditAttribution: alfaguru commented