Skip to main content

{LINEVAR:VALUE} change data

More
4 years 9 months ago #337717 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
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}-->
but as I can see the VAR is {LINEVAR:VALUE} and it gives all the 3 lines
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.

More
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:
Code:
$subtotal += $item->order_product_total_price;
to calculate the subtotal either with taxes.
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
Powered by Kunena Forum