Due to an integration with an external system during the checkout I need to reset & provide a new reservedId for the current quote in some situations. I’ve tried several methods, with no success
Does anyone know how to achieve that?
Or, at least, if this is not possible, how can I reset the whole Chekout session without forcing the customer to logout?
I’ve tried with unsetAll(), clear() & resetCheckout() methods at Mage_Checkout_Model_Session, but they don’t seem to do the trick
As Zyava has suggested, just doing
setReservedOrderId(null)did it…I had tried that previously, but problem was (I think) I was doing that inside the Javascript controller flow
Now I am just placing there a flag as a new session variable & just breaking the process with
Then, when coming back to Checkout, if the flag is set, making…
Did the trick & Magento creates a new reservedOrderId for the quote