Shipping tax based on shipping address and not on billing address

  • Posts: 52
  • Thank you received: 3
  • Hikashop Business
2 months 3 weeks ago #363236

-- 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.

  • Posts: 82967
  • Thank you received: 13393
  • MODERATOR
2 months 3 weeks ago #363239

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:

$cart->package['zone'] = $zone_id;
to:
$cart->package['zone'] = $tax_zone_id;
and the line:
$currencyClass->processShippings($cart->usable_methods->shipping, $cart, $zone_id);
to:
$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.

  • Posts: 52
  • Thank you received: 3
  • Hikashop Business
2 months 3 weeks ago #363260

Hi,
now it works perfectly
Thank you

Last edit: 2 months 3 weeks 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.061 seconds
Powered by Kunena Forum