Clean cart when order is ... feature in 1.5.3

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
12 years 8 months ago #22298

'confirmed' setting looks useful when, say, using Paypal.
If user while in Paypal remembers something else they want then cancelling while in the Paypal screen and having their basket still available in order to amend it sounds useful.

Bit more problematic if there is a 'pay by cheque' or 'pay on delivery' option as well.
Maybe an append to / amend existing order option for such cases?
Also would the clean cart option be better as part of the payment plugin configuration?

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
12 years 8 months ago #22305

Even when the that options is on "confirmed", the cart is still cleaned at the end of the checkout when you pay by check.
In the onAfterOrderConfirm of a payment plugin, you can have the line below to force the system to clean the cart:
$this->removeCart = true;
And that's exactly what we did on the check and collect on delivery plugins as it doesn't make any sense to not clear the cart at the end of the checkout for them.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum