- Posts: 33
- Thank you received: 0
1.5.3: payment options depending on shipping issue
15 years 1 month ago #23105
by hko
1.5.3: payment options depending on shipping issue was created by hko
I am trying to setup the new (and very welcomed, thx for that !!) option to have payments methods depending on the selected shipping option.
Strange thing is that it seems to work but not the first time, need to refresh the paymentpage before the not allowed payments methods disappear from the selections.
Workflow: login_address,shipping,payment,confirm_coupon_cart,status_fields,end
- on shipping page: select an option which will not allow for a specific payment.
- next to payment page will still show payment options who are not suppose to be there.
But when I refresh the page, they are gone and selection list is correct.
Checked caching settings in Joomla itself: off
Checked with IE8 and 9 and FF... same results.
Any ideas?
Strange thing is that it seems to work but not the first time, need to refresh the paymentpage before the not allowed payments methods disappear from the selections.
Workflow: login_address,shipping,payment,confirm_coupon_cart,status_fields,end
- on shipping page: select an option which will not allow for a specific payment.
- next to payment page will still show payment options who are not suppose to be there.
But when I refresh the page, they are gone and selection list is correct.
Checked caching settings in Joomla itself: off
Checked with IE8 and 9 and FF... same results.
Any ideas?
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23127
by nicolas
Replied by nicolas on topic Re: 1.5.3: payment options depending on shipping issue
Hi,
We need to test that. Did you try with the default checkout workflow ?
We need to test that. Did you try with the default checkout workflow ?
Please Log in or Create an account to join the conversation.
15 years 1 month ago - 15 years 1 month ago #23129
by hko
Replied by hko on topic Re: 1.5.3: payment options depending on shipping issue
Yes I did. Same results, both payment and shipping options on the same page and when you select a shipping module, the page refreshes but still shows all payment options... until I manually refresh the page in the browser (F5).
site is in testmode right now, not directly accessibly from the internet but I can arrange access if that makes troubleshooting easier.
site is in testmode right now, not directly accessibly from the internet but I can arrange access if that makes troubleshooting easier.
Last edit: 15 years 1 month ago by hko.
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23141
by nicolas
Replied by nicolas on topic Re: 1.5.3: payment options depending on shipping issue
We'll first try to reproduce the problem on our end and get back to you with our findings.
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23248
by nicolas
Replied by nicolas on topic Re: 1.5.3: payment options depending on shipping issue
Hi,
We found the problem.
Please change the code:
to:
in the function after_shipping of the file components/com_hikashop/controllers/checkout.php and try again. That solved the problem in our tests.
We found the problem.
Please change the code:
Code:
if(($old_shipping_id!=$shipping_id || $old_shipping_method!=$shipping) && strpos($this->checkout_workflow,'payment')!==false){
$this->before_payment(true);
}
to:
Code:
if(($old_shipping_id!=$shipping_id || $old_shipping_method!=$shipping) && strpos($this->checkout_workflow,'payment')!==false){
$this->initCart(true);
$this->before_payment(true);
}
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23258
by hko
Replied by hko on topic Re: 1.5.3: payment options depending on shipping issue
Hi Nicolas,
thx for the fast reply again, really appreciate it!
I can indeed confirm that your solution seems to work. I can not get it to fail anymore, so looks good!
thx again!
thx for the fast reply again, really appreciate it!
I can indeed confirm that your solution seems to work. I can not get it to fail anymore, so looks good!
thx again!
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23259
by nicolas
Replied by nicolas on topic Re: 1.5.3: payment options depending on shipping issue
We'll include the modification in next release.
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds