Skip to main content

Price with and without TAX in the mail

2 years 11 months ago - 2 years 11 months ago #357292 by nicolas
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:
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( 'CLASS' => 'shipping', 'NAME' => JText::_('HIKASHOP_SHIPPING'), 'VALUE' => $t );
to:
Code:
$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: 2 years 11 months ago by nicolas.

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

2 years 11 months ago #357330 by StudioPrzyLesie
Nicolas,
thank You, works :)

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

2 years 11 months ago #357398 by StudioPrzyLesie
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.

2 years 11 months ago #357400 by nicolas
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.

2 years 11 months ago #357422 by StudioPrzyLesie
Nicolas,
I didn't find that - thanks - that was it.
Tom

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

2 years 10 months ago #357634 by StudioPrzyLesie
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.

2 years 10 months ago #357655 by nicolas
Hi,

You can add a bit of HTML around it.
For example, you could change the line:
Code:
$t = $currencyHelper->format($data->cart->order_shipping_price,$data->cart->order_currency_id);
to:
Code:
$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.

2 years 10 months ago #357671 by StudioPrzyLesie
Nicolas,
Thanks - that was it.
Tom

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

Time to create page: 0.072 seconds
Powered by Kunena Forum