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

#   1.5.3: payment options depending on shipping issue

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 3 months ago [\#23105](#23105) by [hko](/forum/user/3515-hko "View hko's Profile")  *[1.5.3: payment options depending on shipping issue](/forum/3-bug-report/23105-1-5-3-payment-options-depending-on-shipping-issue#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&#95;address,shipping,payment,confirm&#95;coupon&#95;cart,status&#95;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?")* was created by *[hko](/forum/user/3515-hko "View hko's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzEwNS0xLTUtMy1wYXltZW50LW9wdGlvbnMtZGVwZW5kaW5nLW9uLXNoaXBwaW5nLWlzc3VlP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#23127](#23127) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.3: payment options depending on shipping issue](/forum/3-bug-report/23105-1-5-3-payment-options-depending-on-shipping-issue#23127 "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&#95;address,shipping,payment,confirm&#95;coupon&#95;cart,status&#95;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?")*

Hi,

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

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 3 months ago -  15 years 3 months ago [\#23129](#23129) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: 1.5.3: payment options depending on shipping issue](/forum/3-bug-report/23105-1-5-3-payment-options-depending-on-shipping-issue#23129 "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&#95;address,shipping,payment,confirm&#95;coupon&#95;cart,status&#95;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?")*

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: 15 years 3 months ago by [hko](/forum/user/3515-hko "View hko's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzEwNS0xLTUtMy1wYXltZW50LW9wdGlvbnMtZGVwZW5kaW5nLW9uLXNoaXBwaW5nLWlzc3VlP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#23141](#23141) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.3: payment options depending on shipping issue](/forum/3-bug-report/23105-1-5-3-payment-options-depending-on-shipping-issue#23141 "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&#95;address,shipping,payment,confirm&#95;coupon&#95;cart,status&#95;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?")*

We'll first try to reproduce the problem on our end and get back to you with our findings.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzEwNS0xLTUtMy1wYXltZW50LW9wdGlvbnMtZGVwZW5kaW5nLW9uLXNoaXBwaW5nLWlzc3VlP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#23248](#23248) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.3: payment options depending on shipping issue](/forum/3-bug-report/23105-1-5-3-payment-options-depending-on-shipping-issue#23248 "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&#95;address,shipping,payment,confirm&#95;coupon&#95;cart,status&#95;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?")*

Hi,

We found the problem.

Please change the code: Code:

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

to: Code:

if(($old_shipping_id!=$shipping_id &#124;&#124; $old_shipping_method!=$shipping) &amp;&amp; strpos($this-&gt;checkout_workflow,'payment')!==false){ $this-&gt;initCart(true); $this-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzEwNS0xLTUtMy1wYXltZW50LW9wdGlvbnMtZGVwZW5kaW5nLW9uLXNoaXBwaW5nLWlzc3VlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 3 months ago [\#23258](#23258) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: 1.5.3: payment options depending on shipping issue](/forum/3-bug-report/23105-1-5-3-payment-options-depending-on-shipping-issue#23258 "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&#95;address,shipping,payment,confirm&#95;coupon&#95;cart,status&#95;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?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzEwNS0xLTUtMy1wYXltZW50LW9wdGlvbnMtZGVwZW5kaW5nLW9uLXNoaXBwaW5nLWlzc3VlP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#23259](#23259) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.3: payment options depending on shipping issue](/forum/3-bug-report/23105-1-5-3-payment-options-depending-on-shipping-issue#23259 "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&#95;address,shipping,payment,confirm&#95;coupon&#95;cart,status&#95;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?")*

We'll include the modification in next release.

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

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