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

#   Checkout Redirect Loop Solution

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 10 months ago [\#182612](#182612) by [cruz777](/forum/user/13445-cruz777 "View cruz777's Profile")  *[Checkout Redirect Loop Solution](/forum/27-checkout/873513-checkout-redirect-loop-solution#182612 "Just thought I would post a fix I came across.  On the checkout page (/checkout) - on cart empty - I wanted the page to redirect to itself (/checkout), so as to show an &quot;empty cart&quot;.  When I put the url in the force URL option on empty of Hikashop I was getting redirect loops.  So I decided to edit the controllers/checkout.php - Removed the line: $this-&gt;setRedirect( $this-&gt;redirect&#95;url, JText::&#95;('CART&#95;EMPTY')); From the function step()  Figured it might have something to do with the way I've set up my checkout workflow - as I have Cart on the first step.  It is now redirecting perfectly without any redirect loop errors.")* was created by *[cruz777](/forum/user/13445-cruz777 "View cruz777's Profile")*

Just thought I would post a fix I came across.

On the checkout page (/checkout) - on cart empty - I wanted the page to redirect to itself (/checkout), so as to show an "empty cart".

When I put the url in the force URL option on empty of Hikashop I was getting redirect loops.

So I decided to edit the controllers/checkout.php
- Removed the line: $this-&gt;setRedirect( $this-&gt;redirect_url, JText::_('CART_EMPTY'));
From the function step()

Figured it might have something to do with the way I've set up my checkout workflow - as I have Cart on the first step.

It is now redirecting perfectly without any redirect loop errors.

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

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