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_cart calls its cart provider to finalize the cart on "place" workflow transition. Due to the lack of transition events at the time of writing, this was implemented within commerce_cart_commerce_order_presave(). Now we can use an event subscriber instead
Comment | File | Size | Author |
---|---|---|---|
#2 | refactor_finalizecart-2827747-2.patch | 3.79 KB | cornifex |
Comments
Comment #2
cornifex CreditAttribution: cornifex at Acro Commerce commentedThis patch removes the presave hook from commerce_cart.module and adds an event subscriber that reacts to order place pre-transition event.
PR on Github: https://github.com/drupalcommerce/commerce/pull/573
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedComment #5
bojanz CreditAttribution: bojanz at Centarro commentedThanks!