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

#   The Payment Method Restriction by Shipping Methods

##

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 11 months ago -  14 years 11 months ago [\#30380](#30380) by [SD](/forum/user/3897-sd "View SD's Profile")  *[The Payment Method Restriction by Shipping Methods](/forum/3-bug-report/30380-the-payment-method-restriction-by-shipping-methods#30380 "In your changelog for Hikashop 1.5.4 you mention the correction of this bug:  &quot;The payment method restriction by shipping methods was only effective after the refresh of the page on the checkout&quot;  What file would I have to replace or edit in 1.5.3 for this to work? Is there a specific piece of code in the file that has to be changed?  I'm not sure if this is in the wrong section, if so I apologize.")* was created by *[SD](/forum/user/3897-sd "View SD's Profile")*

In your changelog for Hikashop 1.5.4 you mention the correction of this bug:

"The payment method restriction by shipping methods was only effective after the refresh of the page on the checkout"

What file would I have to replace or edit in 1.5.3 for this to work? Is there a specific piece of code in the file that has to be changed?

I'm not sure if this is in the wrong section, if so I apologize.

Last edit: 14 years 11 months ago by [SD](/forum/user/3897-sd "View SD's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMDM4MC10aGUtcGF5bWVudC1tZXRob2QtcmVzdHJpY3Rpb24tYnktc2hpcHBpbmctbWV0aG9kcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 11 months ago [\#30403](#30403) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: The Payment Method Restriction by Shipping Methods](/forum/3-bug-report/30380-the-payment-method-restriction-by-shipping-methods#30403 "In your changelog for Hikashop 1.5.4 you mention the correction of this bug:  &quot;The payment method restriction by shipping methods was only effective after the refresh of the page on the checkout&quot;  What file would I have to replace or edit in 1.5.3 for this to work? Is there a specific piece of code in the file that has to be changed?  I'm not sure if this is in the wrong section, if so I apologize.")*

I honestly don't remember where was that change. I think that it might be in components/com_hikashop/controllers/checkout.php but I might be wrong.

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 11 months ago [\#30417](#30417) by [SD](/forum/user/3897-sd "View SD's Profile")  Replied by *[SD](/forum/user/3897-sd "View SD's Profile")* on topic *[Re: The Payment Method Restriction by Shipping Methods](/forum/3-bug-report/30380-the-payment-method-restriction-by-shipping-methods#30417 "In your changelog for Hikashop 1.5.4 you mention the correction of this bug:  &quot;The payment method restriction by shipping methods was only effective after the refresh of the page on the checkout&quot;  What file would I have to replace or edit in 1.5.3 for this to work? Is there a specific piece of code in the file that has to be changed?  I'm not sure if this is in the wrong section, if so I apologize.")*

**nicolas wrote:**

> I honestly don't remember where was that change. I think that it might be in components/com\_hikashop/controllers/checkout.php but I might be wrong.

Could I please get a confirmation on that...I want to correct that error and save as much time as possible. Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMDM4MC10aGUtcGF5bWVudC1tZXRob2QtcmVzdHJpY3Rpb24tYnktc2hpcHBpbmctbWV0aG9kcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 11 months ago [\#30431](#30431) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: The Payment Method Restriction by Shipping Methods](/forum/3-bug-report/30380-the-payment-method-restriction-by-shipping-methods#30431 "In your changelog for Hikashop 1.5.4 you mention the correction of this bug:  &quot;The payment method restriction by shipping methods was only effective after the refresh of the page on the checkout&quot;  What file would I have to replace or edit in 1.5.3 for this to work? Is there a specific piece of code in the file that has to be changed?  I'm not sure if this is in the wrong section, if so I apologize.")*

I compared both files and there was indeed a change for that bug in there.

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

14 years 11 months ago [\#30473](#30473) by [SD](/forum/user/3897-sd "View SD's Profile")  Replied by *[SD](/forum/user/3897-sd "View SD's Profile")* on topic *[Re: The Payment Method Restriction by Shipping Methods](/forum/3-bug-report/30380-the-payment-method-restriction-by-shipping-methods#30473 "In your changelog for Hikashop 1.5.4 you mention the correction of this bug:  &quot;The payment method restriction by shipping methods was only effective after the refresh of the page on the checkout&quot;  What file would I have to replace or edit in 1.5.3 for this to work? Is there a specific piece of code in the file that has to be changed?  I'm not sure if this is in the wrong section, if so I apologize.")*

Thanks Nicolas!

Do you recall what code was changed? I mean to nag, we just changed quite a bit of code so it would be nice to know what to look for. Thanks again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMDM4MC10aGUtcGF5bWVudC1tZXRob2QtcmVzdHJpY3Rpb24tYnktc2hpcHBpbmctbWV0aG9kcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 11 months ago [\#30487](#30487) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: The Payment Method Restriction by Shipping Methods](/forum/3-bug-report/30380-the-payment-method-restriction-by-shipping-methods#30487 "In your changelog for Hikashop 1.5.4 you mention the correction of this bug:  &quot;The payment method restriction by shipping methods was only effective after the refresh of the page on the checkout&quot;  What file would I have to replace or edit in 1.5.3 for this to work? Is there a specific piece of code in the file that has to be changed?  I'm not sure if this is in the wrong section, if so I apologize.")*

In the after_shipping function we added the line: $this-&gt;initCart(true);

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

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