Remove VAT from email confirmations

  • Posts: 19
  • Thank you received: 2
12 years 4 months ago #54146

The email confirmations that the customer receives and the vendor have a Total with Vat and a Total without Vat. How do I remove that? I just want a "Total".

Thank you.
Toni

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

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
12 years 4 months ago #54225

You can use a translation override to change these texts:
www.hikashop.com/en/download/languages.html#modify

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

  • Posts: 19
  • Thank you received: 2
12 years 4 months ago #54289

What would happen if I just removed an entire line?
When HikaShop is updated do you loose these changes?

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

  • Posts: 12953
  • Thank you received: 1778
12 years 4 months ago #54293

Hello,

1. If you remove an entire line for example the line "PER_UNIT=" each"" you'll just have the word PER_UNIT displaid instead of the translation word EACH.

2. No, I think that you won't loose anything.

Hope this will help you a little

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

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
12 years 4 months ago #54297

Make sure that you ADD your modification in the override area as explained in the documentation. Like that:
PER_UNIT=" "

if you remove the line in the default translation file, you will loose the change when you update.

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

  • Posts: 19
  • Thank you received: 2
12 years 4 months ago #54333

I made the change and used the box below to make the change.

It would be nice if it showed the tax and then gave one total with shipping and the tax. Is that possible?

Thank you for all your support.

Toni

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

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
12 years 4 months ago #54357

To do that, you will have to edit the email via the menu System->Emails (business edition) and change the code of the email in order to display like you want.


You can display the taxes amount with that code:

<?php echo 'Taxes : '.$currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax-$data->cart->full_total->prices[0]->price_value,$data->order_currency_id); ?>

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

  • Posts: 19
  • Thank you received: 2
12 years 4 months ago #54417

I have the Essentials Edition not business. So I guess not possible.

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

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
12 years 4 months ago #54446

The emails can be edited in the folder media/com_hikashop/mail but beware that the files will be overwritten during updates so do a backup.
With the interface in the Business edition, it generates override files so you don't loose them when you update.

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

  • Posts: 19
  • Thank you received: 2
12 years 4 months ago #54933

reason to have the business edition!

Thanks for all your help.

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

  • Posts: 228
  • Thank you received: 8
7 years 1 week ago #280993

Hello,

Sorry to open an old thread but I would like to remove the VAT line from user confirmation Email as well.
We use the Enterprise version and I've located three files which I believe responsible for the generation of the user Emails:
order_creation_notification.html.php
order_creation_notification.preload.php
order_creation_notification.text.php

But, I could not find the line to modify.

Can you please help?

Guy.

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

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
7 years 1 week ago #280994

Hi,

I would recommend to edit the emails via the menu System>Emails.
That way, you won't loose your changes when you update.
You'll want to edit the "preload" at the bottom of the email edition.
The tax line(s) is added with that code:

foreach($data->cart->order_tax_info as $tax) {
				$cartFooters[] = array(
					'NAME' => $tax->tax_namekey,
					'VALUE' => $currencyHelper->format($tax->tax_amount,$data->cart->order_currency_id)
				);
			}

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

  • Posts: 228
  • Thank you received: 8
7 years 1 week ago #281129

Thank you Nicolas for your replay.
Took me a while to find the file, it was order_notification.preload.php at the end :)
All good now.

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

Time to create page: 0.112 seconds
Powered by Kunena Forum