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

#   Cart Is Not Been Emptied

##

- **[bars92](/forum/user/3048-bars92 "View bars92's Profile")**
- [![bars92's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3048-bars92 "View bars92's Profile") Topic Author
- [ Offline](/forum/user/3048-bars92)

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 2 months ago [\#22668](#22668) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  *[Cart Is Not Been Emptied](/forum/4-how-to/22668-cart-is-not-been-emptied#22668 "I cant seem to empty the cart after confirm status (the checkout configuration is set to Clean cart when order is confirm and im sure order has been set to confirm)  I elso tried to clean manualy by &quot;$this-&gt;removeCart = true;&quot; at the OnAfterPaymentConfiguration() and at OnPaymentNotification() but both does not work.  What should i do?")* was created by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")*

I cant seem to empty the cart after confirm status (the checkout configuration is set to Clean cart when order is confirm and im sure order has been set to confirm)

I elso tried to clean manualy by "$this-&gt;removeCart = true;" at the OnAfterPaymentConfiguration() and at OnPaymentNotification() but both does not work.

What should i do?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjY4LWNhcnQtaXMtbm90LWJlZW4tZW1wdGllZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

15 years 2 months ago [\#22677](#22677) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart Is Not Been Emptied](/forum/4-how-to/22668-cart-is-not-been-emptied#22677 "I cant seem to empty the cart after confirm status (the checkout configuration is set to Clean cart when order is confirm and im sure order has been set to confirm)  I elso tried to clean manualy by &quot;$this-&gt;removeCart = true;&quot; at the OnAfterPaymentConfiguration() and at OnPaymentNotification() but both does not work.  What should i do?")*

That's normal. When you are in that mode, you need to redirect the user to the after_end task of the checkout controller (like all the other payment plugins do) when the payment is successful.
Normally, the payment gateway allows you to provide a success url in onAfterOrderConfirm.

For example, in the paypal payment plugin, you have the code:
$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id.$url_itemid;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjY4LWNhcnQtaXMtbm90LWJlZW4tZW1wdGllZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bars92](/forum/user/3048-bars92 "View bars92's Profile")**
- [![bars92's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3048-bars92 "View bars92's Profile") Topic Author
- [ Offline](/forum/user/3048-bars92)

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 2 months ago [\#22728](#22728) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  Replied by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")* on topic *[Re: Cart Is Not Been Emptied](/forum/4-how-to/22668-cart-is-not-been-emptied#22728 "I cant seem to empty the cart after confirm status (the checkout configuration is set to Clean cart when order is confirm and im sure order has been set to confirm)  I elso tried to clean manualy by &quot;$this-&gt;removeCart = true;&quot; at the OnAfterPaymentConfiguration() and at OnPaymentNotification() but both does not work.  What should i do?")*

Great its working now, but i noticed that when i am redirecting to a thank you page with this parameters (Success URL), then i get only Joomla! thank you for purches and the cart is still in the same condition, only when i move to a different page it's been emptied.
What can i do to display my page without the Joomla! thank you and to visiable the cart at the same page as empty?

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjY4LWNhcnQtaXMtbm90LWJlZW4tZW1wdGllZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

15 years 2 months ago [\#22729](#22729) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart Is Not Been Emptied](/forum/4-how-to/22668-cart-is-not-been-emptied#22729 "I cant seem to empty the cart after confirm status (the checkout configuration is set to Clean cart when order is confirm and im sure order has been set to confirm)  I elso tried to clean manualy by &quot;$this-&gt;removeCart = true;&quot; at the OnAfterPaymentConfiguration() and at OnPaymentNotification() but both does not work.  What should i do?")*

You need to add a return url option, like there is for all the other payment plugins.
The task after_end of the checkout controller will automatically redirect to the URL specified in that option if anything is entered there.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIyNjY4LWNhcnQtaXMtbm90LWJlZW4tZW1wdGllZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.060 seconds

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

[](#top)
