- Posts: 90
- Thank you received: 2
Problem with setting payment costs
10 years 6 months ago #241308
by gielhier
Problem with setting payment costs was created by gielhier
-- 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.
-- 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.
10 years 6 months ago #241310
by nicolas
Replied by nicolas on topic Problem with setting payment costs
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:
before the line:
in the file administrator/components/com_hikashop/helpers/helper.php and it should work like you want.
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:
Code:
$price = $order->full_total->prices[0]->price_value_without_shipping_with_tax;
Code:
if(!empty($method->payment_params->payment_min_price) && hikashop_toFloat($method->payment_params->payment_min_price) > $price) {
Please Log in or Create an account to join the conversation.
10 years 5 months ago #241451
by gielhier
Replied by gielhier on topic Problem with setting payment costs
Thank you, that works!
Please Log in or Create an account to join the conversation.
Time to create page: 0.040 seconds