Need to display shipping price without VAT

  • Posts: 256
  • Thank you received: 2
8 years 3 months ago #247515

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2

Our client needs the shipping prices shown in the cart, invoice and order status notification email to be displayed without VAT, but for the price to be added on in the VAT field still.

Eg:
Currently is looks like this:
Subtotal £1.88
Shipping £1.80
VAT £0.68

Total £4.06

We need it to do this:
Subtotal £1.88
Shipping £1.50
VAT £0.68

Total £4.06

Is this possible with some changes in Views?

Last edit: 8 years 3 months ago by dancingkazzaf. Reason: Spelling

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

  • Posts: 256
  • Thank you received: 2
8 years 3 months ago #247519

Nevermind, I managed to work it out on my own, thank you anyway :cheer:

I changed this line:

echo $this->currencyHelper->format($this->order->order_shipping_price,$this->order->order_currency_id);
To this:
echo $this->currencyHelper->format($this->order->order_shipping_price-@$this->order->order_shipping_tax,$this->order->order_currency_id);
In Views/Order/Show (Front end template) and Views/Order/Show_Additional & Views/Order/Invoice (Back end template) and finally in the Preload section of the email.

And for the checkout/cart of the website I changed this line:
} else {
	$shipping_price += $shipping->shipping_price_with_tax;
}
To this:
} else {
	$shipping_price += $shipping->shipping_price;
}
In Views/Checkout/Cart (Frontend template)

Last edit: 8 years 1 month ago by dancingkazzaf.
The following user(s) said Thank You: Jerome

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

Time to create page: 0.057 seconds
Powered by Kunena Forum