Skip to main content

Shipping tax based on shipping address and not on billing address

More
2 years 1 week ago #363236 by nico1979
-- url of the page with the problem -- : www.shangshungpublications.com/
-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.2
-- Browser(s) name and version -- : All

Hi,
I've got a serious issue on billing. In hikashop configuration I've setted the value of the field "Type of address used for tax" to "Billing address" but, in the cart, Hikashop applies the tax of the shipping address on the shipping price. Why?

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

More
2 years 1 week ago #363239 by nicolas
Hi,

That's a good point. I looked at the history of the changes around this and as far as I can go back, it has always been like that for no particular reason.
I think this could be changed by changing the line:
Code:
$cart->package['zone'] = $zone_id;
to:
Code:
$cart->package['zone'] = $tax_zone_id;
and the line:
Code:
$currencyClass->processShippings($cart->usable_methods->shipping, $cart, $zone_id);
to:
Code:
$currencyClass->processShippings($cart->usable_methods->shipping, $cart, $tax_zone_id);
in the file administrator/components/com_hikashop/classes/cart.php
Can you confirm that this solves the problem for you ?

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

More
2 years 1 week ago - 2 years 1 week ago #363260 by nico1979
Hi,
now it works perfectly
Thank you
Last edit: 2 years 1 week ago by nico1979.
The following user(s) said Thank You: nicolas

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

Time to create page: 0.219 seconds
Powered by Kunena Forum