- Posts: 86541
- Thank you received: 14304
Price with and without TAX in the mail
2 years 11 months ago - 2 years 11 months ago #357292
by nicolas
Replied by nicolas on topic Price with and without TAX in the mail
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:
to:
@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
);
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.
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
- Posts: 196
- Thank you received: 15
2 years 11 months ago #357330
by StudioPrzyLesie
Replied by StudioPrzyLesie on topic Price with and without TAX in the mail
Nicolas,
thank You, works
thank You, works
Please Log in or Create an account to join the conversation.
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
- Posts: 196
- Thank you received: 15
2 years 11 months ago #357398
by StudioPrzyLesie
Replied by StudioPrzyLesie on topic Price with and without TAX in the mail
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
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
Replied by nicolas on topic Price with and without TAX in the mail
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.
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.
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
- Posts: 196
- Thank you received: 15
2 years 11 months ago #357422
by StudioPrzyLesie
Replied by StudioPrzyLesie on topic Price with and without TAX in the mail
Nicolas,
I didn't find that - thanks - that was it.
Tom
I didn't find that - thanks - that was it.
Tom
Please Log in or Create an account to join the conversation.
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
- Posts: 196
- Thank you received: 15
2 years 10 months ago #357634
by StudioPrzyLesie
Replied by StudioPrzyLesie on topic Price with and without TAX in the mail
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
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
Replied by nicolas on topic Price with and without TAX in the mail
Hi,
You can add a bit of HTML around it.
For example, you could change the line:
to:
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.
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);
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.
- StudioPrzyLesie
-
Topic Author
- Offline
Less
More
- Posts: 196
- Thank you received: 15
2 years 10 months ago #357671
by StudioPrzyLesie
Replied by StudioPrzyLesie on topic Price with and without TAX in the mail
Nicolas,
Thanks - that was it.
Tom
Thanks - that was it.
Tom
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds