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

#   Empty cart without redirect possible?

##

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

Less More

- Posts: 86
- Thank you received: 5
-
-

5 years 3 months ago [\#334890](#334890) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#334890 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")* was created by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.28
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Chrome

Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected.
Can you please check this?
thanks

Giuse

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzA0NS1lbXB0eS1jYXJ0LXdpdGhvdXQtcmVkaXJlY3QtcG9zc2libGU/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

5 years 2 months ago [\#334899](#334899) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#334899 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Hi,

Yes, that's normal. The cart display view, and the checkout view are meant to display supposing that the cart is not empty. So when the cart is empty, they need to redirect elsewhere.
If you don't enter a URL in the "URL where to redirect when the cart is empty" setting, HikaShop will automatically redirect to a products listing so I recommend entering there the main URL of your shop. That's what merchants usually do.

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

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

Less More

- Posts: 86
- Thank you received: 5
-
-

5 years 2 months ago [\#335100](#335100) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#335100 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Thanks Nicolas, but the behavior is a little different:
1) I create a "Cart" menu item and leave empty the "redirect when cart empty" parameter in HikaShop.
2) In the front-end, clicking on that menu item will redirect to the shop =&gt; some SEO tools notice a 301 redirect problem since the menu link does not point directly to the destination page (that's one problem).
3) I add a product to my cart, then the "Cart" menu item will not redirect and I can see my cart.
4) Now I remove the product from the cart, the cart is empty =&gt; the "Cart" menu item is still usable, it will not redirect to the shop even if the cart is empty, most probably since a cart was created althought without any product.
I think this is not very consistent and why not leaving the administrator the option of not redirecting the cart even if empty? Since there is an option, when the option value is empty the redirect should be disabled in my opinion.
Cheers and thanks

Giuse

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzA0NS1lbXB0eS1jYXJ0LXdpdGhvdXQtcmVkaXJlY3QtcG9zc2libGU/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

5 years 2 months ago [\#335113](#335113) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#335113 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Hi,

Indeed, the system allows you to stay on the cart details page when the cart has been created, even if there are no more products in the cart.
I agree that it's a bit inconsistent with when the cart has not been created yet.
We'll change that up for the next version to make it consistent and add a hidden option to be able to change the behavior of the system (redirect or not when the cart is empty on the cart page).

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

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

Less More

- Posts: 86
- Thank you received: 5
-
-

5 years 2 months ago [\#335115](#335115) by [Giuse](/forum/user/59190-giuse "View Giuse's Profile")  Replied by *[Giuse](/forum/user/59190-giuse "View Giuse's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#335115 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Thanks a lot, I will wait for changelog in next version to use the hidden option.

Giuse

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

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

Less More

- Posts: 221
- Thank you received: 8
-

2 years 5 months ago [\#361354](#361354) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  Replied by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#361354 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

> nicolas wrote: Hi,
> We'll change that up for the next version to make it consistent and add a hidden option to be able to change the behavior of the system (redirect or not when the cart is empty on the cart page).

hi.
excuse me for post in old topic. is this feature implement in hikashop and accessible now?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzA0NS1lbXB0eS1jYXJ0LXdpdGhvdXQtcmVkaXJlY3QtcG9zc2libGU/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

2 years 5 months ago [\#361356](#361356) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#361356 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Hi,

Yes, it has been added. As I said 2 years ago, it was added as a hidden option.
Go in your PHPMyAdmin, open the hikashop_config table, and add a new entry with the namekey cart_show_page_redirect_on_empty and the value 0 and it won't redirect you when you try to access the cart page and you have an empty cart.

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

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

Less More

- Posts: 221
- Thank you received: 8
-

2 years 3 months ago [\#362204](#362204) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  Replied by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#362204 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Hello
According to you, I did the mentioned steps, but unfortunately it didn't work, and when the shopping cart is empty, the redirect is done

- [ ![Screenshot190.png](/forum/attachment/59507) ](/forum/attachment/59507 "Screenshot190.png") [ ](/forum/attachment/59507?download=1 "Screenshot190.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzA0NS1lbXB0eS1jYXJ0LXdpdGhvdXQtcmVkaXJlY3QtcG9zc2libGU/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

2 years 3 months ago [\#362207](#362207) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#362207 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Hi,

Then, what is the URL of the shop ? Could you provide instructions to reproduce the issue ?
I'm thinking we're talking about different things here.

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

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

Less More

- Posts: 221
- Thank you received: 8
-

2 years 3 months ago -  2 years 3 months ago [\#362240](#362240) by [sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")  Replied by *[sadaf3d](/forum/user/46256-sadaf3d "View sadaf3d's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#362240 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

**\[Moderator:\]** For safety purpose, we have saved on our side your references, and deleted here.
Next time, use our **[ Contact us](https://www.hikashop.com/support/contact-us.html)** form to provide these kind of references.

Add this product to the shopping cart with the account mentioned above; And after going to the shopping cart, remove the product. When the shopping cart is empty, the redirect is mandatory, although according to your instructions, I also created a hidden option cart_show_page_redirect_on_empty in the database and gave it a value of 1.
After checking the necessary items; Please delete the user password and site address

Last edit: 2 years 3 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzA0NS1lbXB0eS1jYXJ0LXdpdGhvdXQtcmVkaXJlY3QtcG9zc2libGU/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

2 years 3 months ago [\#362244](#362244) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty cart without redirect possible?](/forum/27-checkout/903045-empty-cart-without-redirect-possible#362244 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Hi, one of the option of HikaShop is to redirect when tha cart is empty but leaving that option blank does a redirect as well, there is no way to go to a menu item associated to display cart when empty without being redirected. Can you please check this? thanks  Giuse")*

Hi,

What you're describing as the "shopping cart" is not the shopping cart page. It's the checkout page.
The checkout page can only be accessed with a cart.
If you empty the cart from the checkout you will be redirected, there is no way around this.
The cart_show_page_redirect_on_empty hidden parameter is for the cart page.
You can see it on this page for example:
[ yourwebsite.ir/%D9%85%D8%AD%D8%B5%D9%88%D9%84%D8%A7%D8%AA/cart](https://yourwebsite.ir/%D9%85%D8%AD%D8%B5%D9%88%D9%84%D8%A7%D8%AA/cart)
And I can confirm that on this page of your website, if I empty my cart, I'm not redirected and I stay on this page.
So the feature I talked about on this thread with @Giuse is working on your website too. It's just not what you thought it was.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzA0NS1lbXB0eS1jYXJ0LXdpdGhvdXQtcmVkaXJlY3QtcG9zc2libGU/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.085 seconds

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