CartAssignment was written to be cart specific, but we actually could use it on any non-cart order (draft or non-draft).
To be able to do so we should move it to commerce_order and rename it to OrderAssignment, along with the related event.

Related: #2808813: Create a recipe for assigning anon orders on user registration.

Comments

bojanz created an issue. See original summary.

  • bojanz committed 6de11b8 on 8.x-2.x
    Issue #2811085 by bojanz: Refactor CartAssignment into an...
bojanz’s picture

Status: Active » Fixed

Boom, done. Added a small test while I was at it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.