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.
We need to reimplement commerce_cart_order_convert() as a service, invoke it from hook_user_login().
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedSo, we need \Drupal\commerce_cart\CartOrderConverter and \Drupal\commerce_cart\CartOrderConverterInterface.
Comment #3
rszrama CreditAttribution: rszrama at Centarro commentedIt may be worth considering as a default or optional behavior the ability to delete previous cart orders as well, as this always comes up on 1.x.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedChanging to match new language (convert -> assign), after discussing with rszrama and mglaman.
I'll leave #3 to a followup, commit the critical part first.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedBoom!
Comment #7
johnstorey CreditAttribution: johnstorey commentedComment #8
agoradesign CreditAttribution: agoradesign commentedWhy do you assign yourself @johnstorey?? This is already committed and fixed