[Skip to main content](#vessel-content)

#   Clean cart when order is ... feature in 1.5.3

##

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 3 months ago [\#22298](#22298) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  *[Clean cart when order is ... feature in 1.5.3](/forum/2-general-talk-about-hikashop/22298-clean-cart-when-order-is-feature-in-1-5-3#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?")* was created by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")*

'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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIyMjk4LWNsZWFuLWNhcnQtd2hlbi1vcmRlci1pcy1mZWF0dXJlLWluLTEtNS0zP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 3 months ago [\#22305](#22305) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Clean cart when order is ... feature in 1.5.3](/forum/2-general-talk-about-hikashop/22298-clean-cart-when-order-is-feature-in-1-5-3#22305 "'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?")*

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-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIyMjk4LWNsZWFuLWNhcnQtd2hlbi1vcmRlci1pcy1mZWF0dXJlLWluLTEtNS0zP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.083 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
