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

#   Error when choosing payment method

##

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

Less More

- Posts: 95
- Thank you received: 1
-
-
-

12 years 7 months ago [\#149417](#149417) by [vaclav](/forum/user/6663-vaclav "View vaclav's Profile")  *[Error when choosing payment method](/forum/3-bug-report/866881-error-when-choosing-payment-method#149417 "Hello,  I have this problem with payment methods:  For order total price 1 - 499 I have payment fee 38 For order total price 500 + I have payment fee 19  The problem is when my customer orders goods in total value for example 473. The customer can choose the payment with fee 38. But when he chooses the payment the total of the order changes to 501 and then HikaShop changes availiable payment to that with fee 19 (because now the order total is more than 500) and is unable to check out with that 38 fee payment. When he chooses the 19 fee payment, the total of the order changes to 492 and now he can check out only choosing payment with fee 38. And it goes round and round...  So he is unable to check out in this case.  How can I solve this? Is there any function which uses only the goods value for choosing the payment fee? It does not make sense when the payment type is choosen depending on goods + payment fee value..  Thanks Vaclav")* was created by *[vaclav](/forum/user/6663-vaclav "View vaclav's Profile")*

Hello,

I have this problem with payment methods:

For order total price 1 - 499 I have payment fee 38
For order total price 500 + I have payment fee 19

The problem is when my customer orders goods in total value for example 473. The customer can choose the payment with fee 38. But when he chooses the payment the total of the order changes to 501 and then HikaShop changes availiable payment to that with fee 19 (because now the order total is more than 500) and is unable to check out with that 38 fee payment. When he chooses the 19 fee payment, the total of the order changes to 492 and now he can check out only choosing payment with fee 38. And it goes round and round...

So he is unable to check out in this case.

How can I solve this? Is there any function which uses only the goods value for choosing the payment fee? It does not make sense when the payment type is choosen depending on goods + payment fee value..

Thanks
Vaclav

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 7 months ago -  12 years 7 months ago [\#149527](#149527) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Error when choosing payment method](/forum/3-bug-report/866881-error-when-choosing-payment-method#149527 "Hello,  I have this problem with payment methods:  For order total price 1 - 499 I have payment fee 38 For order total price 500 + I have payment fee 19  The problem is when my customer orders goods in total value for example 473. The customer can choose the payment with fee 38. But when he chooses the payment the total of the order changes to 501 and then HikaShop changes availiable payment to that with fee 19 (because now the order total is more than 500) and is unable to check out with that 38 fee payment. When he chooses the 19 fee payment, the total of the order changes to 492 and now he can check out only choosing payment with fee 38. And it goes round and round...  So he is unable to check out in this case.  How can I solve this? Is there any function which uses only the goods value for choosing the payment fee? It does not make sense when the payment type is choosen depending on goods + payment fee value..  Thanks Vaclav")*

Hello Vaclav,
Thanks for your feedback, I just made a fix regarding that issue, so can you edit your file "*administrator\\components\\com\_hikashop\\helpers\\**helper.php***" and change these lines : Code:

if(@$method-&gt;payment_params-&gt;payment_price_use_tax) { if(isset($order-&gt;order_full_price)) $price = $order-&gt;order_full_price; if(isset($order-&gt;total-&gt;prices[0]-&gt;price_value_with_tax)) $price = $order-&gt;total-&gt;prices[0]-&gt;price_value_with_tax; if(isset($order-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax)) $price = $order-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax; } else { if(isset($order-&gt;order_full_price)) $price = $order-&gt;order_full_price; if(isset($order-&gt;total-&gt;prices[0]-&gt;price_value)) $price = $order-&gt;total-&gt;prices[0]-&gt;price_value; if(isset($order-&gt;full_total-&gt;prices[0]-&gt;price_value)) $price = $order-&gt;full_total-&gt;prices[0]-&gt;price_value; }

By : Code:

if(@$method-&gt;payment_params-&gt;payment_price_use_tax) { if(isset($order-&gt;order_full_price)) $price = $order-&gt;order_full_price; if(isset($order-&gt;total-&gt;prices[0]-&gt;price_value_with_tax)) $price = $order-&gt;total-&gt;prices[0]-&gt;price_value_with_tax; if(isset($order-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax)) $price = $order-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax; if(isset($order-&gt;full_total-&gt;prices[0]-&gt;price_value_without_payment_with_tax)) $price = $order-&gt;full_total-&gt;prices[0]-&gt;price_value_without_payment_with_tax; } else { if(isset($order-&gt;order_full_price)) $price = $order-&gt;order_full_price; if(isset($order-&gt;total-&gt;prices[0]-&gt;price_value)) $price = $order-&gt;total-&gt;prices[0]-&gt;price_value; if(isset($order-&gt;full_total-&gt;prices[0]-&gt;price_value)) $price = $order-&gt;full_total-&gt;prices[0]-&gt;price_value; if(isset($order-&gt;full_total-&gt;prices[0]-&gt;price_value_without_payment)) $price = $order-&gt;full_total-&gt;prices[0]-&gt;price_value_without_payment; }

Last edit: 12 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

The following user(s) said Thank You: [vaclav](/forum/user/6663-vaclav "View vaclav's Profile")

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

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

Less More

- Posts: 95
- Thank you received: 1
-
-
-

12 years 7 months ago [\#149536](#149536) by [vaclav](/forum/user/6663-vaclav "View vaclav's Profile")  Replied by *[vaclav](/forum/user/6663-vaclav "View vaclav's Profile")* on topic *[Error when choosing payment method](/forum/3-bug-report/866881-error-when-choosing-payment-method#149536 "Hello,  I have this problem with payment methods:  For order total price 1 - 499 I have payment fee 38 For order total price 500 + I have payment fee 19  The problem is when my customer orders goods in total value for example 473. The customer can choose the payment with fee 38. But when he chooses the payment the total of the order changes to 501 and then HikaShop changes availiable payment to that with fee 19 (because now the order total is more than 500) and is unable to check out with that 38 fee payment. When he chooses the 19 fee payment, the total of the order changes to 492 and now he can check out only choosing payment with fee 38. And it goes round and round...  So he is unable to check out in this case.  How can I solve this? Is there any function which uses only the goods value for choosing the payment fee? It does not make sense when the payment type is choosen depending on goods + payment fee value..  Thanks Vaclav")*

Perfect!

Now it works.

Thank you Mohamed.

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

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