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

#   Empty cart return page

##

- **[gerard\_pp](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile")**
- [![gerard&#95;pp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile") Topic Author
- [ Offline](/forum/user/2611-gerard-pp)

Less More

- Posts: 44
- Thank you received: 0
-
-

15 years 5 months ago [\#17893](#17893) by [gerard\_pp](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile")  *[Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#17893 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")* was created by *[gerard\_pp](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile")*

Hi

I want that after an item is erased from the shopping cart the return address i want it to be the index of my site.
Actually hikashop is displaying a page showing products and a message: "The cart is empty".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3ODkzLWVtcHR5LWNhcnQtcmV0dXJuLXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

15 years 5 months ago [\#17894](#17894) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#17894 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")*

Hi,

You need to enter the URL in the option "URL where to redirect when the cart is empty" in the "checkout" tab of the configuration.

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

- **[gerard\_pp](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile")**
- [![gerard&#95;pp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile") Topic Author
- [ Offline](/forum/user/2611-gerard-pp)

Less More

- Posts: 44
- Thank you received: 0
-
-

15 years 5 months ago [\#17896](#17896) by [gerard\_pp](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile")  Replied by *[gerard\_pp](/forum/user/2611-gerard-pp "View gerard&#95;pp's Profile")* on topic *[Re: Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#17896 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")*

hahahaha, could it be more obvious...
Thanks a lot.

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

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

Less More

- Posts: 45
- Thank you received: 0
-
-

15 years 1 month ago [\#27576](#27576) by [k8fisher](/forum/user/3652-k8fisher "View k8fisher's Profile")  Replied by *[k8fisher](/forum/user/3652-k8fisher "View k8fisher's Profile")* on topic *[Re: Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#27576 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")*

Hi Ive got a weird situation I need the "cart empty" behaviour to send the user to a different place depending on the route through the shop they took. How can I intercept the code which sends them to the place configure in the back end of the store? Id like to replace the behaviour with a history.go(-2) instead of using a set URL.

Would this be achievable by altering one of the views? Ive checked the checkout views (in display views) but cannot see the code to be replaced.

Could you give me an idea where this code exists please.

Many thanks

Kate

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3ODkzLWVtcHR5LWNhcnQtcmV0dXJuLXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

15 years 1 month ago [\#27591](#27591) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#27591 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")*

Unfortunately, that code is near the beginning of the function "step" of the file components/com_hikashop/controllers/checkout.php
That means that you won't be able to modify it with an override and will have to directly modify the code of that core file of HikaShop if you want to change its behavior.

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 11 months ago [\#182461](#182461) by [gammapartners](/forum/user/34385-gammapartners "View gammapartners's Profile")  Replied by *[gammapartners](/forum/user/34385-gammapartners "View gammapartners's Profile")* on topic *[Re: Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#182461 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")*

Hi !

I got the 2.3.3 comercial version of hikashop, and still can't find the "URL where to redirect when the cart is empty" in the "checkout" tab of the configuration. Is it changed? how can I make a redirection now?

thanks

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 11 months ago [\#182470](#182470) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Re: Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#182470 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")*

gammapartners,

It's not under the "Checkout", but under the "Main" tab -&gt; "Cart".

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 11 months ago [\#182697](#182697) by [gammapartners](/forum/user/34385-gammapartners "View gammapartners's Profile")  Replied by *[gammapartners](/forum/user/34385-gammapartners "View gammapartners's Profile")* on topic *[Re: Empty cart return page](/forum/4-how-to/17893-empty-cart-return-page#182697 "Hi  I want that after an item is erased from the shopping cart the return address i want it to be the index of my site. Actually hikashop is displaying a page showing products and a message: &quot;The cart is empty&quot;.")*

Nice! thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3ODkzLWVtcHR5LWNhcnQtcmV0dXJuLXBhZ2U/dG1wbD1tYXJrZG93bg==) 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.084 seconds

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