How to ad shipping tax amount to order creation/confirmation email?

  • Posts: 11
  • Thank you received: 0
8 years 2 weeks ago #255040

I managed to display shipping tax amount in checkout cart, but i need it also displayed in emails customers receive after checking out.
I tried looking into system/emails order notifications, but with no luck.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 2 weeks ago #255083

Hi,

What change did you do to the checkout cart exactly for that ?
If you want to modify the way the emails display, you indeed need to edit them via the menu System>Emails.
And if you want to add the tax to the shipping fee in the email, you want to modify the code:

if($config->get('price_with_tax')) {
			$t = $currencyHelper->format($data->cart->order_shipping_price,$data->cart->order_currency_id);
		}else{
			$t = $currencyHelper->format($data->cart->order_shipping_price-@$data->cart->order_shipping_tax,$data->cart->order_currency_id);
		}
		$cartFooters[] = array(
			'NAME' => JText::_('HIKASHOP_SHIPPING'),
			'VALUE' => $t
		);
in the preload area of the emails.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum