Price with and without TAX in the mail

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
11 months 2 weeks ago #357292

Hi,

@marto42
If you want to have the subtotal without taxes everywhere you don't need to change any code.
Just turn off the "show taxed prices" setting in the Tax section of the HikaShop configuration page.

This thread was about doing something else where the subtotal would display both with and without taxes amounts.

@StudioPrzyLesie
Yes.
You would have to change:

		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(
			'CLASS' => 'shipping',
			'NAME' => JText::_('HIKASHOP_SHIPPING'),
			'VALUE' => $t
		);
to:
		$t = $currencyHelper->format($data->cart->order_shipping_price,$data->cart->order_currency_id);
		$t .=' '. $currencyHelper->format($data->cart->order_shipping_price-@$data->cart->order_shipping_tax,$data->cart->order_currency_id);
		$cartFooters[] = array(
			'CLASS' => 'shipping',
			'NAME' => JText::_('HIKASHOP_SHIPPING'),
			'VALUE' => $t
		);

Last edit: 11 months 2 weeks ago by nicolas.

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
11 months 2 weeks ago #357330

Nicolas,
thank You, works :)

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
11 months 1 week ago #357398

Nicolas,
This is one more addition :)
How to add a product SKU to the confirmation email? I found an entry, but from 11 years ago, which is probably out of date :(
Tom

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
11 months 1 week ago #357400

Hi,

The product code of products is already included automatically in the emails if the "Display product code" setting of the HikaShop configuration is activated.
This setting will also display the product code on the product details page, the order details, etc.

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
11 months 1 week ago #357422

Nicolas,
I didn't find that - thanks - that was it.
Tom

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
11 months 4 days ago #357634

Nicolas,
additions in this topic (at the client's request).
How to distinguish the price with and without tax, e.g. bolding one of them.
And also - how to add the value of the discount granted, for example, in the summary.

Tom

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
11 months 4 days ago #357655

Hi,

You can add a bit of HTML around it.
For example, you could change the line:

$t = $currencyHelper->format($data->cart->order_shipping_price,$data->cart->order_currency_id);
to:
$t = '<b>'.$currencyHelper->format($data->cart->order_shipping_price,$data->cart->order_currency_id).'</b>';

To get the discount value, it's more complex. It requires looking in $data->cart->products, extract the order_product_discount_info serialized data, unserialize it and look in that object. You'll need a programmer to work on this.

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
11 months 3 days ago #357671

Nicolas,
Thanks - that was it.
Tom

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

Time to create page: 0.056 seconds
Powered by Kunena Forum