diff --git a/packages/core/src/Actions/Carts/AssociateUser.php b/packages/core/src/Actions/Carts/AssociateUser.php index 213ef62ad9..b8917546d4 100644 --- a/packages/core/src/Actions/Carts/AssociateUser.php +++ b/packages/core/src/Actions/Carts/AssociateUser.php @@ -18,7 +18,7 @@ public function execute(Cart $cart, LunarUser $user, $policy = 'merge'): self if ($policy == 'merge') { $userCart = Cart::whereUserId($user->getKey())->active()->unMerged()->latest()->first(); if ($userCart) { - app(MergeCart::class)->execute($userCart, $cart); + app(MergeCart::class)->execute($cart, $userCart); } }