Jump to content

How the cart is being cleared on order saving?


serafimsorovsky

Recommended Posts

My goal is not to clear the cart after placing the order. 

I discover the code of PaymentModuleCore::validateOrder

I noticed that after following call 

$result = $order->add();

the Cart becomes empty. It happens when the order is being placed into DB and if $order->id_cart is set.

 

If I clear $order->id_cart then Cart doesn't become empty.

 

But I can't find the code that clears the Cart.

Edited by serafimsorovsky (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...