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

#   Checkout returns to step 0 after login

##

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

Less More

- Posts: 24
- Thank you received: 0
-
-

10 years 11 months ago [\#223225](#223225) by [eduardkoks](/forum/user/39037-eduardkoks "View eduardkoks's Profile")  *[Checkout returns to step 0 after login](/forum/27-checkout/880928-checkout-returns-to-step-0-after-login#223225 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : chrome  Hello,  in my checkout, I have following steps:  step 0: cart step 1: login step 2: address + shippping step 3: payment step 4: cart status + status + terms &amp; conditions step 5: end  when I put something in my cart, without logging in, next when I proceed to checkout, I come in step 0 (cart is shown). So far so good. When clicking next, I come in step 1: login After login, I expect the hikashop to continue with step 3, however, after succesfull login I see my cart contents again (step 0) with step-2 in the url. By clicking next, I'm forwarded to step 2.  Why is the system not proceeding to step 2 immediately after login?  After some investigation and playing with some parameters, I found that when the setting 'Auto select default shipping and payment methods' is set to 'yes', you have this strange behavior. However, when set to 'if only one method available', the checkout proceeds to next step (address+shipping) as I expect  How can I fix this when setting 'auto select default shipping = yes' ?")* was created by *[eduardkoks](/forum/user/39037-eduardkoks "View eduardkoks's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.5.12
-- Browser(s) name and version -- : chrome

Hello,

in my checkout, I have following steps:

step 0: cart
step 1: login
step 2: address + shippping
step 3: payment
step 4: cart status + status + terms &amp; conditions
step 5: end

when I put something in my cart, without logging in, next when I proceed to checkout, I come in step 0 (cart is shown). So far so good. When clicking next, I come in step 1: login
After login, I expect the hikashop to continue with step 3, however, after succesfull login I see my cart contents again (step 0) with step-2 in the url. By clicking next, I'm forwarded to step 2.

Why is the system not proceeding to step 2 immediately after login?

After some investigation and playing with some parameters, I found that when the setting 'Auto select default shipping and payment methods' is set to 'yes', you have this strange behavior. However, when set to 'if only one method available', the checkout proceeds to next step (address+shipping) as I expect

How can I fix this when setting 'auto select default shipping = yes' ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MDkyOC1jaGVja291dC1yZXR1cm5zLXRvLXN0ZXAtMC1hZnRlci1sb2dpbj90bXBsPW1hcmtkb3du) 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: 14326
-
-

10 years 11 months ago [\#223227](#223227) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout returns to step 0 after login](/forum/27-checkout/880928-checkout-returns-to-step-0-after-login#223227 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : chrome  Hello,  in my checkout, I have following steps:  step 0: cart step 1: login step 2: address + shippping step 3: payment step 4: cart status + status + terms &amp; conditions step 5: end  when I put something in my cart, without logging in, next when I proceed to checkout, I come in step 0 (cart is shown). So far so good. When clicking next, I come in step 1: login After login, I expect the hikashop to continue with step 3, however, after succesfull login I see my cart contents again (step 0) with step-2 in the url. By clicking next, I'm forwarded to step 2.  Why is the system not proceeding to step 2 immediately after login?  After some investigation and playing with some parameters, I found that when the setting 'Auto select default shipping and payment methods' is set to 'yes', you have this strange behavior. However, when set to 'if only one method available', the checkout proceeds to next step (address+shipping) as I expect  How can I fix this when setting 'auto select default shipping = yes' ?")*

Hi,

Remove the code: Code:

if($this-&gt;_getStep('address',$this-&gt;previous)!==false &#124;&#124; $this-&gt;_getStep('confirm',(int)$this-&gt;previous)===(int)$this-&gt;previous){ $status = false; } if(!$this-&gt;before_address()){ $status = false; }

in the file components/com_hikashop/controllers/checkout.php and that should avoid that.

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

10 years 11 months ago [\#223269](#223269) by [eduardkoks](/forum/user/39037-eduardkoks "View eduardkoks's Profile")  Replied by *[eduardkoks](/forum/user/39037-eduardkoks "View eduardkoks's Profile")* on topic *[Checkout returns to step 0 after login](/forum/27-checkout/880928-checkout-returns-to-step-0-after-login#223269 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : chrome  Hello,  in my checkout, I have following steps:  step 0: cart step 1: login step 2: address + shippping step 3: payment step 4: cart status + status + terms &amp; conditions step 5: end  when I put something in my cart, without logging in, next when I proceed to checkout, I come in step 0 (cart is shown). So far so good. When clicking next, I come in step 1: login After login, I expect the hikashop to continue with step 3, however, after succesfull login I see my cart contents again (step 0) with step-2 in the url. By clicking next, I'm forwarded to step 2.  Why is the system not proceeding to step 2 immediately after login?  After some investigation and playing with some parameters, I found that when the setting 'Auto select default shipping and payment methods' is set to 'yes', you have this strange behavior. However, when set to 'if only one method available', the checkout proceeds to next step (address+shipping) as I expect  How can I fix this when setting 'auto select default shipping = yes' ?")*

Hello,

Unfortunately this not solves my problem. My problem still exists after removing the code you proposed.
You can check at [ www.testwerk.be](http://www.testwerk.be)

I've created an account for you
Name: testuser
Password: hikashop

So:
1. add 1 product without being logged on
2. proceed to checkout (can do this with the minicart on the right top)
3. on checkout you see your cart, click next (login)
4. please login with the given credentials
5. now you see you are going back to the cart at step 0 instead of going to step 2

This only occurs when the setting 'Auto select default shipping and payment methods' is set to 'yes'.

How to fix that I'm directly go to next step instead of previous.

Best regards,
Eduard Koks

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#224217](#224217) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Checkout returns to step 0 after login](/forum/27-checkout/880928-checkout-returns-to-step-0-after-login#224217 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.12 -- Browser(s) name and version -- : chrome  Hello,  in my checkout, I have following steps:  step 0: cart step 1: login step 2: address + shippping step 3: payment step 4: cart status + status + terms &amp; conditions step 5: end  when I put something in my cart, without logging in, next when I proceed to checkout, I come in step 0 (cart is shown). So far so good. When clicking next, I come in step 1: login After login, I expect the hikashop to continue with step 3, however, after succesfull login I see my cart contents again (step 0) with step-2 in the url. By clicking next, I'm forwarded to step 2.  Why is the system not proceeding to step 2 immediately after login?  After some investigation and playing with some parameters, I found that when the setting 'Auto select default shipping and payment methods' is set to 'yes', you have this strange behavior. However, when set to 'if only one method available', the checkout proceeds to next step (address+shipping) as I expect  How can I fix this when setting 'auto select default shipping = yes' ?")*

Hi,

It seems that you have solved your issue, I just give a try on your website and it is working as expected:
[ take.ms/Fvo2Q](http://take.ms/Fvo2Q)

And the shipping method has been automatically selected.

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

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