Problem with setting payment costs

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
8 years 6 months ago #241308

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- Error-message(debug-mod must be tuned on) -- : n/a

Hello,
I'm using Hikashop Business and encounter the following problem:
- I have set payment costs for any order below €10.00 ("Max price: 10.00" in config)
- I have set shipping costs of €6.95
The problem is that Hikashop counts the shippings costs together with the order value to determine the payment costs.

Example:
- My order value is €5.00
- Shipping cost: € 6.95
- TOTAL: € 11.95
Hikashop says: No payment costs
BUT: the order value is below €10.00, so payments costs need to be calculated!

I hope I make myself clear.
How can I fix this?
Thanks in advance.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 6 months ago #241310

Hi,

That's how it is supposed to be. So I can't give a fix that we would include on our end.
It's normal that the shipping fees are counted for the restrictions on the payment methods.

You'll have to add the line:

$price = $order->full_total->prices[0]->price_value_without_shipping_with_tax;
before the line:
if(!empty($method->payment_params->payment_min_price) && hikashop_toFloat($method->payment_params->payment_min_price) > $price) {
in the file administrator/components/com_hikashop/helpers/helper.php and it should work like you want.

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

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
8 years 5 months ago #241451

Thank you, that works!

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

Time to create page: 0.059 seconds
Powered by Kunena Forum