We need to reimplement commerce_cart_order_convert() as a service, invoke it from hook_user_login().
bojanz created an issue. See original summary.
So, we need \Drupal\commerce_cart\CartOrderConverter and \Drupal\commerce_cart\CartOrderConverterInterface.
It 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.
Changing to match new language (convert -> assign), after discussing with rszrama and mglaman.
I'll leave #3 to a followup, commit the critical part first.
Issue #2713501: Reimplement cart order assignment
Boom!
Why do you assign yourself @johnstorey?? This is already committed and fixed
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
bojanz commentedSo, we need \Drupal\commerce_cart\CartOrderConverter and \Drupal\commerce_cart\CartOrderConverterInterface.
Comment #3
rszrama 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 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 commentedBoom!
Comment #7
johnstorey commentedComment #8
agoradesign commentedWhy do you assign yourself @johnstorey?? This is already committed and fixed