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

#   Reload page when different radio options selected

##

- **[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: 86323
- Thank you received: 14283
-
-

13 years 2 months ago [\#121632](#121632) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Reload page when different radio options selected](/forum/27-checkout/861144-reload-page-when-different-radio-options-selected?start=20#121632 "I'm having issues with the tax, shipping prices and options updating when a customer chooses different radio buttons.  I'd like my cart totals to update when the shipping option is chosen and when the customer chooses a shipping address already input in the system (ie chooses a radio instead of adds new which does update the page).  I'd also like my shipping options to adjust based on shipping zone. I have excluded certain shipping options to Hawaii and Alaska, but again these options still appear if the customer chooses a shipping option already in the system by selecting its radio button.  How can I do this?    bellaraejewelry.com/joomla/")*

Hi,

It is normal that it goes to the next step. It makes complete sense. for most cases and even on your website I don't see why that would be a problem.
Anyway, I've changed that on your website by changing the line:
if(($old_payment_id!=$payment_id &#124;&#124; $old_payment_method!=$payment) &amp;&amp; $this-&gt;_getStep('confirm',(int)$this-&gt;previous)===(int)$this-&gt;previous){

to:
if(($old_payment_id!=$payment_id &#124;&#124; $old_payment_method!=$payment)){

in components/com_hikashop/controllers/checkout.php
Note however that we won't include that change by default in HikaShop so be careful when you update.

Regarding the issue with the payment method selection reset after the address step, after changing back the checkout workflow, I was not able to reproduce the issue on your website. Did you change something else maybe ?

Since both issues seems resolved right now, I'm leaving the checkout workflow as you wanted it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTE0NC1yZWxvYWQtcGFnZS13aGVuLWRpZmZlcmVudC1yYWRpby1vcHRpb25zLXNlbGVjdGVkP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 months ago [\#121698](#121698) by [mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")  Replied by *[mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")* on topic *[Reload page when different radio options selected](/forum/27-checkout/861144-reload-page-when-different-radio-options-selected?start=20#121698 "I'm having issues with the tax, shipping prices and options updating when a customer chooses different radio buttons.  I'd like my cart totals to update when the shipping option is chosen and when the customer chooses a shipping address already input in the system (ie chooses a radio instead of adds new which does update the page).  I'd also like my shipping options to adjust based on shipping zone. I have excluded certain shipping options to Hawaii and Alaska, but again these options still appear if the customer chooses a shipping option already in the system by selecting its radio button.  How can I do this?    bellaraejewelry.com/joomla/")*

Will this change work if I change the workflow? I want payment method selection and delivery method selection to be on the first page.

It is obvious that the second problem cannot be reproduced, becouse it occurs only when payment/delivery method selection is before registration. I had to move it after registration to work around the problem. I could change it back if someone will look at it, but I cant change it for a week.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTE0NC1yZWxvYWQtcGFnZS13aGVuLWRpZmZlcmVudC1yYWRpby1vcHRpb25zLXNlbGVjdGVkP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 months ago [\#121700](#121700) by [mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")  Replied by *[mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")* on topic *[Reload page when different radio options selected](/forum/27-checkout/861144-reload-page-when-different-radio-options-selected?start=20#121700 "I'm having issues with the tax, shipping prices and options updating when a customer chooses different radio buttons.  I'd like my cart totals to update when the shipping option is chosen and when the customer chooses a shipping address already input in the system (ie chooses a radio instead of adds new which does update the page).  I'd also like my shipping options to adjust based on shipping zone. I have excluded certain shipping options to Hawaii and Alaska, but again these options still appear if the customer chooses a shipping option already in the system by selecting its radio button.  How can I do this?    bellaraejewelry.com/joomla/")*

Regarding;

" It makes complete sense. for most cases and even on your website I don't see why that would be a problem."

I will explain again. I want payment/delivery method selection to be on the first page. Also, I want my customer to see price update after he/she changes delivery/payment method. It makes no sense at all, that flow advances to another page, becouse customer WILL NOT see price update. IT MAKES NO SENSE ON ANY PAGE that customer does not see the effect of his actions.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTE0NC1yZWxvYWQtcGFnZS13aGVuLWRpZmZlcmVudC1yYWRpby1vcHRpb25zLXNlbGVjdGVkP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 months ago [\#121704](#121704) by [mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")  Replied by *[mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")* on topic *[Reload page when different radio options selected](/forum/27-checkout/861144-reload-page-when-different-radio-options-selected?start=20#121704 "I'm having issues with the tax, shipping prices and options updating when a customer chooses different radio buttons.  I'd like my cart totals to update when the shipping option is chosen and when the customer chooses a shipping address already input in the system (ie chooses a radio instead of adds new which does update the page).  I'd also like my shipping options to adjust based on shipping zone. I have excluded certain shipping options to Hawaii and Alaska, but again these options still appear if the customer chooses a shipping option already in the system by selecting its radio button.  How can I do this?    bellaraejewelry.com/joomla/")*

I see that You have already changed the workflow on my page. And contrary to what you have written, the second (bigger) bug is easily reproducable. I have just reporoduced it before. You order anythink, you select second payment option (not the one that is selected by default, and you register (not login, you have to register as a new customer). And that is it. System behaves as if customer have selected first (default) payment method.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTE0NC1yZWxvYWQtcGFnZS13aGVuLWRpZmZlcmVudC1yYWRpby1vcHRpb25zLXNlbGVjdGVkP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 2 months ago [\#121705](#121705) by [mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")  Replied by *[mariuszl](/forum/user/10298-mariuszl "View mariuszl's Profile")* on topic *[Reload page when different radio options selected](/forum/27-checkout/861144-reload-page-when-different-radio-options-selected?start=20#121705 "I'm having issues with the tax, shipping prices and options updating when a customer chooses different radio buttons.  I'd like my cart totals to update when the shipping option is chosen and when the customer chooses a shipping address already input in the system (ie chooses a radio instead of adds new which does update the page).  I'd also like my shipping options to adjust based on shipping zone. I have excluded certain shipping options to Hawaii and Alaska, but again these options still appear if the customer chooses a shipping option already in the system by selecting its radio button.  How can I do this?    bellaraejewelry.com/joomla/")*

Regarding You 'fix' - don't You think that the source of the problem is that the code:

$old_payment_method!=$payment

is not working?

Your 'fix' seems to me like a hack. The problem is that the system does not see payment method change.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTE0NC1yZWxvYWQtcGFnZS13aGVuLWRpZmZlcmVudC1yYWRpby1vcHRpb25zLXNlbGVjdGVkP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

13 years 1 month ago [\#122259](#122259) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Reload page when different radio options selected](/forum/27-checkout/861144-reload-page-when-different-radio-options-selected?start=20#122259 "I'm having issues with the tax, shipping prices and options updating when a customer chooses different radio buttons.  I'd like my cart totals to update when the shipping option is chosen and when the customer chooses a shipping address already input in the system (ie chooses a radio instead of adds new which does update the page).  I'd also like my shipping options to adjust based on shipping zone. I have excluded certain shipping options to Hawaii and Alaska, but again these options still appear if the customer chooses a shipping option already in the system by selecting its radio button.  How can I do this?    bellaraejewelry.com/joomla/")*

My modification is indeed not a fix but a hack to make it work like you want. If it was a fix I would have told you that we would include it in next versions which was not the case.
What you're missing is that the after_payment function needs to work for all the possible combinations of checkout workflows and all the possible ways you can configure the options of the checkout. You can't just remove a check like that as it would then not work properly for 30% of cases. So no, just removing $old_payment_method!=$payment is not a viable solution.

You said

> It is obvious that the second problem cannot be reproduced, because it occurs only when payment/delivery method selection is before registration. I had to move it after registration to work around the problem.

but no, I actually tried with the payment and shipping selection before the registration step and didn't had the issue. Just to make sure, I wanted to try again today but I can see that you changed your checkout workflow back and I can't access your backend to change it again, so I can't test.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MTE0NC1yZWxvYWQtcGFnZS13aGVuLWRpZmZlcmVudC1yYWRpby1vcHRpb25zLXNlbGVjdGVkP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.059 seconds

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