REMOVING VAT FROM INVOICE

  • Posts: 4
  • Thank you received: 0
12 years 11 months ago #31222

How would I remove this total with vat and without, I just want it to be the Total nothing esle. thanks.

$22.00 1 $22.00
Shipping method : $8.27
TOTAL without VAT : $30.27
TOTAL with VAT : $30.27
Billing address

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 11 months ago #31251

To remove the total without VAT line, you need to edit your emails via the menu System->Emails (Business edition only) and remove the line:
if($data->cart->full_total->prices[0]->price_value!=$data->cart->full_total->prices[0]->price_value_with_tax) echo '<tr><td colspan="4" style="text-align:right">'.JText::sprintf('TOTAL_WITHOUT_VAT',$currencyHelper->format($data->cart->full_total->prices[0]->price_value,$data->order_currency_id)).'</td></tr>';

For the TOTAL with VAT, you can just change the code: TOTAL_WITH_VAT to TOTAL there.

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

  • Posts: 4
  • Thank you received: 0
12 years 11 months ago #31266

whyyy no way to do it with essentials????? There has to be a back coding to send out the email.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 11 months ago #31271

The emails are located in the media/com_hikashop/mail folder. So you can do it there, but you will loose your modifications when you update if you don't do it via the interface so make sure that you backup your changes.

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

  • Posts: 4
  • Thank you received: 0
12 years 11 months ago #31336

What File?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 11 months ago #31361

Wait, you're talking about the invoice that you can print on the back end ? Or the invoice that your customers can print on the front end ? In both cases you should be able to do that change via the menu Display->Views by editing the corresponding view file ( order/invoice.php and order/show.php ).
Or you're really talking about the emails sent by HikaShop ? If that's the case, the name of the files in that folder should be obvious... order_creation_notification for the notification sent when the order is created. order_status_notification for the notification sent when the status of the order is changed. etc

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

  • Posts: 28
  • Thank you received: 0
12 years 11 months ago #31639

Hi Nicholas, I found those VAT files, to change to GST in the language file.

My modifications in the bottom section were to be:
PRICE_AFTER_TAX=" excl GST) "
VAT="GST"
TOTAL_WITHOUT_VAT="TOTAL without GST : %s"
TOTAL_WITH_VAT="TOTAL with GST : %s"

However, if I just open that language file, and make no modifications, then Save it, it says "Saved successfully".

If I add my mods to the bottom file, and try to save it, my browser says "uploading.... then gets to 93%" then fails and "cannot display web page" comes up in the small popup language box.

In other words, it won't let me save it.

Any suggestions? There shouldn't be any strange permissions on that file, as I havent modified anything like that.

Is there any other way of editing that language file, including putting the edits in that new "special" part that won't get overiden when upgrading.

Last edit: 12 years 11 months ago by lakesentrance.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 11 months ago #31658

Hi,

That probably happens because the file languages/overrides/en-GB.override.ini cannot be written. You should check the permissions of that file if it exists and if not the permissions of its folder.
You can also create that file manually via FTP if you want.

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

  • Posts: 28
  • Thank you received: 0
12 years 11 months ago #31671

THx Nicolas. I changed the permissions, then just edited the file via ftp.

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

  • Posts: 90
  • Thank you received: 1
11 years 6 months ago #103736

I have read several of the posts but am not sure if they are what I want. I want to remove the "Vat" line from my invoice.

I have attached a picture. I thought it was in the view order / invoice of my backend template... but not sure what to comment out to get rid of that line.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #103761

Hi,

It is strange, you have a "negative zero" in your invoice.
You can edit the view "checkout | invoice" and edit the lines:

$taxes = $this->order->order_subtotal-$this->order->order_subtotal_no_vat+$this->order->order_shipping_tax-$this->order->order_discount_tax;
if($taxes != 0){
By (if you want to remove the line if "near" zero):
$taxes = (float)($this->order->order_subtotal-$this->order->order_subtotal_no_vat+$this->order->order_shipping_tax-$this->order->order_discount_tax);
if(bccomp($taxes, 0.0, 2) != 0){
Or by (if you want to remove the line completely):
$taxes = $this->order->order_subtotal-$this->order->order_subtotal_no_vat+$this->order->order_shipping_tax-$this->order->order_discount_tax;
if(false){

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 90
  • Thank you received: 1
11 years 6 months ago #104423

I don't have the view "checkout|invoice" but I did this on the "order|invoice" and it worked perfectly thanks!

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

  • Posts: 59
  • Thank you received: 2
8 years 10 months ago #226893

Hi Nicolas, I am trying to get this working in Australia where we do no have VAT but GST. The invoice gets created with the Total with VAT and gives an amount, but this amount is the price with the shipping added. it does not add the GST to the total. I would also like to get rid of the word VAT as this is confusing. I would be happy if I could substitute the word VAT with GST. I tried adding an override in the language file as suggested above, but this has not made a change with or without the override. Another suggestion is to edit the Views>checkout | invoice. I have looked, and my version doesn't seem to have, either invoice or order in the views, any suggestions? This should not be an issue after all this time, Regards

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 10 months ago #226922

Hi,

Your question is not related to the "VAT" in the invoice but to the "VAT" in the email.
Please create a new thread for that question which is different that the original one (and which is 4 years old).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.118 seconds
Powered by Kunena Forum