Price with and without TAX in the mail

  • Posts: 78
  • Thank you received: 3
  • Hikashop Business
8 months 2 weeks ago #303397

Hi,

How to configure email settings so that the seller will be informed about the price of products with tax and without tax?

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

  • Posts: 67185
  • Thank you received: 9961
  • MODERATOR
8 months 2 weeks ago #303407

Hi,

You mean that you want to display the unit price with AND without taxes in the order admin notification/payment notification emails that the administrator receives when the order is created/confirmed ?
In that case, that would require customization of the "preload" version of these emails via the menu System>Emails as there is no option you can just activate/change to do that.

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

  • Posts: 78
  • Thank you received: 3
  • Hikashop Business
8 months 2 weeks ago #303412

Hi Nicolas,
Any hint how to do it? I found how to change the content of an email with a price without TAX:

Simply add the line:
$config->set('price_with_tax',0);
after:
$config =& hikashop_config();

How to change to display two prices (with and without)?

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

  • Posts: 67185
  • Thank you received: 9961
  • MODERATOR
8 months 2 weeks ago #303415

Hi,

That will require more complex modifications as the email doesn't support that.
You would have to change:

if($config->get('price_with_tax')){
			$unit_price = $currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->cart->order_currency_id);
			$total_price = $currencyHelper->format($item->order_product_total_price,$data->cart->order_currency_id);
			$subtotal += $item->order_product_total_price;
		}else{
			$unit_price = $currencyHelper->format($item->order_product_price,$data->cart->order_currency_id);
			$total_price = $currencyHelper->format($item->order_product_total_price_no_vat,$data->cart->order_currency_id);
			$subtotal += $item->order_product_total_price_no_vat;
		}
to:
			$unit_price = $currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->cart->order_currency_id);
			$total_price = $currencyHelper->format($item->order_product_total_price,$data->cart->order_currency_id);
			$subtotal += $item->order_product_total_price;
			$unit_price .= ' '. $currencyHelper->format($item->order_product_price,$data->cart->order_currency_id);
			$total_price .= ' '. $currencyHelper->format($item->order_product_total_price_no_vat,$data->cart->order_currency_id);
just to get the unit and the total price of each product with and without taxes.

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

  • Posts: 78
  • Thank you received: 3
  • Hikashop Business
8 months 2 weeks ago #303466

Great - it looks very good :)
Thanks!!!

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

Time to create page: 0.061 seconds
Powered by Kunena Forum