1.5.3: payment options depending on shipping issue

  • Posts: 33
  • Thank you received: 0
13 years 3 months ago #23105

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?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23127

Hi,

We need to test that. Did you try with the default checkout workflow ?

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
13 years 3 months ago #23129

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.

Last edit: 13 years 3 months ago by hko.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23141

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.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23248

Hi,

We found the problem.

Please change the code:

					if(($old_shipping_id!=$shipping_id || $old_shipping_method!=$shipping) && strpos($this->checkout_workflow,'payment')!==false){
						$this->before_payment(true);
					}

to:
if(($old_shipping_id!=$shipping_id || $old_shipping_method!=$shipping) && strpos($this->checkout_workflow,'payment')!==false){
						$this->initCart(true);
						$this->before_payment(true);
					}
in the function after_shipping of the file components/com_hikashop/controllers/checkout.php and try again. That solved the problem in our tests.

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
13 years 3 months ago #23258

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!

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #23259

We'll include the modification in next release.

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum