Skip to content

Commit

Permalink
do not delete cart during checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
repl6669 committed Oct 29, 2024
1 parent 30e6d3e commit 944d58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Carts/Actions/CheckoutCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __invoke(CartContract $cart): OrderContract
}

if (Config::get('lunar-api.general.checkout.forget_cart_after_order_creation', true)) {
$this->cartSession->forget();
$this->cartSession->forget(delete: false);
}

OrderCreated::dispatch($model);
Expand Down

0 comments on commit 944d58c

Please sign in to comment.