- Posts: 1184
- Thank you received: 13
{LINEVAR:VALUE} change data
4 years 9 months ago #337717
by verzevoul
{LINEVAR:VALUE} change data was created by verzevoul
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4
Hello. I m trying to modify the email ''Order creation notification''.
I need to show the total price in the
but as I can see the VAR is {LINEVAR:VALUE} and it gives all the 3 lines
The first line 'Σύνολο χωρίς ΦΠΑ 39,88 €' is the total with VAT. I need to have the price without VAT.
Thanks!
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4
Hello. I m trying to modify the email ''Order creation notification''.
I need to show the total price in the
Code:
<!--{START:ORDER_FOOTER}-->
<tr>
<td class="{LINEVAR:CLASS}_label" colspan="{TXT:FOOTER_COLSPAN}" style="text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;">{LINEVAR:NAME}</td>
<td class="{LINEVAR:CLASS}_value" style="text-align:right">{LINEVAR:VALUE}</td>
</tr>
<!--{END:ORDER_FOOTER}-->
Code:
Σύνολο χωρίς ΦΠΑ 39,88 €
Αποστολή 3,00 €
ΦΠΑ 24% 7,72 €
ΣΥΝΟΛΟ με ΦΠΑ 42,88 €
The first line 'Σύνολο χωρίς ΦΠΑ 39,88 €' is the total with VAT. I need to have the price without VAT.
Thanks!
Please Log in or Create an account to join the conversation.
4 years 9 months ago #337722
by nicolas
Replied by nicolas on topic {LINEVAR:VALUE} change data
Hi,
You can't change that in the HTML area.
You need to change that in the "preload" area of the email.
There you can find the code:
to calculate the subtotal either with taxes.
So you need to change the line to:
You can't change that in the HTML area.
You need to change that in the "preload" area of the email.
There you can find the code:
Code:
$subtotal += $item->order_product_total_price;
So you need to change the line to:
Code:
$subtotal += $item->order_product_total_price_no_vat;
Please Log in or Create an account to join the conversation.
Time to create page: 0.161 seconds