- Posts: 24
- Thank you received: 0
Checkout returns to step 0 after login
- eduardkoks
-
Topic Author
- Offline
Less
More
10 years 11 months ago #223225
by eduardkoks
Checkout returns to step 0 after login was created by eduardkoks
-- 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 & 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' ?
-- 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 & 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 or Create an account to join the conversation.
10 years 11 months ago #223227
by nicolas
Replied by nicolas on topic Checkout returns to step 0 after login
Hi,
Remove the code:
in the file components/com_hikashop/controllers/checkout.php and that should avoid that.
Remove the code:
Code:
if($this->_getStep('address',$this->previous)!==false || $this->_getStep('confirm',(int)$this->previous)===(int)$this->previous){
$status = false;
}
if(!$this->before_address()){
$status = false;
}
Please Log in or Create an account to join the conversation.
- eduardkoks
-
Topic Author
- Offline
Less
More
- Posts: 24
- Thank you received: 0
10 years 11 months ago #223269
by eduardkoks
Replied by eduardkoks on topic Checkout returns to step 0 after login
Hello,
Unfortunately this not solves my problem. My problem still exists after removing the code you proposed.
You can check at 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
Unfortunately this not solves my problem. My problem still exists after removing the code you proposed.
You can check at 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 or Create an account to join the conversation.
10 years 11 months ago #224217
by Xavier
Replied by Xavier on topic Checkout returns to step 0 after login
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
And the shipping method has been automatically selected.
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
And the shipping method has been automatically selected.
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds