{LINEVAR:VALUE} change data

  • Posts: 1027
  • Thank you received: 11
  • Hikashop Business
2 years 4 months ago #337717

-- 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

<!--{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
Σύνολο χωρίς ΦΠΑ	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.

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
2 years 4 months ago #337722

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:

$subtotal += $item->order_product_total_price;
to calculate the subtotal either with taxes.
So you need to change the line to:
$subtotal += $item->order_product_total_price_no_vat;

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

Time to create page: 0.054 seconds
Powered by Kunena Forum