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

#   Change redirect when customer empties the cart

##

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

Less More

- Posts: 18
- Thank you received: 5
-
-

4 years 8 months ago [\#340561](#340561) by [JenDee](/forum/user/64622-jendee "View JenDee's Profile")  *[Change redirect when customer empties the cart](/forum/27-checkout/904197-change-redirect-when-customer-empties-the-cart#340561 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28 -- Browser(s) name and version -- : Chrome 98.0.4758.109  Hi  If the customer views the cart and then empties it without checking out, he is redirected to the Joomla login page.  As we are just using the guest checkout and not asking for registration at all, I would like to change this to redirect to the products page. Is this possible?  Thanks x")* was created by *[JenDee](/forum/user/64622-jendee "View JenDee's Profile")*

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 4.1.0
-- PHP version -- : 7.4.28
-- Browser(s) name and version -- : Chrome 98.0.4758.109

Hi

If the customer views the cart and then empties it without checking out, he is redirected to the Joomla login page.

As we are just using the guest checkout and not asking for registration at all, I would like to change this to redirect to the products page. Is this possible?

Thanks
x

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

4 years 8 months ago [\#340562](#340562) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change redirect when customer empties the cart](/forum/27-checkout/904197-change-redirect-when-customer-empties-the-cart#340562 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28 -- Browser(s) name and version -- : Chrome 98.0.4758.109  Hi  If the customer views the cart and then empties it without checking out, he is redirected to the Joomla login page.  As we are just using the guest checkout and not asking for registration at all, I would like to change this to redirect to the products page. Is this possible?  Thanks x")*

Hi,

In the settings of the HikaShop configuration, you have an option called "URL where you will be redirected when the cart is empty". So you can enter there the URL you want.

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

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

Less More

- Posts: 18
- Thank you received: 5
-
-

4 years 8 months ago [\#340565](#340565) by [JenDee](/forum/user/64622-jendee "View JenDee's Profile")  Replied by *[JenDee](/forum/user/64622-jendee "View JenDee's Profile")* on topic *[Change redirect when customer empties the cart](/forum/27-checkout/904197-change-redirect-when-customer-empties-the-cart#340565 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28 -- Browser(s) name and version -- : Chrome 98.0.4758.109  Hi  If the customer views the cart and then empties it without checking out, he is redirected to the Joomla login page.  As we are just using the guest checkout and not asking for registration at all, I would like to change this to redirect to the products page. Is this possible?  Thanks x")*

Hi Nicolas
Thank you for your help.
I had changed this but for me it works only when you try to access the cart and it is empty, or if I empty the cart from the checkout page.

If I add something to the cart and remove that item from the cart on the view cart page, I am redirected to the login page with the following alert message:
"info
Successfully Saved
Please login first"

Sorry I should have been more specific and I think you will need the url to see it as perhaps it is not meant to do thi.

[ www.omegapointpress.org.uk/jom/shop](https://www.omegapointpress.org.uk/jom/shop)

x

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

4 years 8 months ago -  4 years 8 months ago [\#340568](#340568) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Change redirect when customer empties the cart](/forum/27-checkout/904197-change-redirect-when-customer-empties-the-cart#340568 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28 -- Browser(s) name and version -- : Chrome 98.0.4758.109  Hi  If the customer views the cart and then empties it without checking out, he is redirected to the Joomla login page.  As we are just using the guest checkout and not asking for registration at all, I would like to change this to redirect to the products page. Is this possible?  Thanks x")*

Hello,

That's because your link points to **not** the checkout but the **cart view from the user control panel**.
And that you have this log in request because emptying **this** view of the cart, you are redirected to log in, in order to be in the panel user.

Now, our suggestion, why don't you use the classic **[ Checkout url link](https://www.omegapointpress.org.uk/jom/view-cart/checkout)** ? And then you will be sure that when your cart will be emptied you will be redirected like Nicolas told you.
Hope this will help you and fit your needs.

Regards

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

The following user(s) said Thank You: [JenDee](/forum/user/64622-jendee "View JenDee's Profile")

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

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

Less More

- Posts: 18
- Thank you received: 5
-
-

4 years 7 months ago [\#340579](#340579) by [JenDee](/forum/user/64622-jendee "View JenDee's Profile")  Replied by *[JenDee](/forum/user/64622-jendee "View JenDee's Profile")* on topic *[Change redirect when customer empties the cart](/forum/27-checkout/904197-change-redirect-when-customer-empties-the-cart#340579 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28 -- Browser(s) name and version -- : Chrome 98.0.4758.109  Hi  If the customer views the cart and then empties it without checking out, he is redirected to the Joomla login page.  As we are just using the guest checkout and not asking for registration at all, I would like to change this to redirect to the products page. Is this possible?  Thanks x")*

Hi Phillip

Thank you for explaining. I do feel that a View Cart link should be what it says and not checkout. People may want to view the cart before checking out and on the checkout page the cart details are right at the bottom. Perhaps a case for both, I'll see

I think I will redesign the login page to make more sense if people end up there and possibly change the Info alert message

Thank you for your help
Best regards
Jennie x

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

4 years 7 months ago [\#340586](#340586) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change redirect when customer empties the cart](/forum/27-checkout/904197-change-redirect-when-customer-empties-the-cart#340586 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28 -- Browser(s) name and version -- : Chrome 98.0.4758.109  Hi  If the customer views the cart and then empties it without checking out, he is redirected to the Joomla login page.  As we are just using the guest checkout and not asking for registration at all, I would like to change this to redirect to the products page. Is this possible?  Thanks x")*

Hi,

Note that the cart view being at the bottom of the checkout page is just the default behavior. You can easily change that with the Checkout workflow area under the Checkout tab of the HikaShop configuration:
[ www.hikashop.com/support/documentation/4...eckout-workflow.html](https://www.hikashop.com/support/documentation/409-hikashop-checkout-workflow.html)

The following user(s) said Thank You: [JenDee](/forum/user/64622-jendee "View JenDee's Profile")

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

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