Page 1 of 1

tax into email (vat mwst mehrwertsteuer)

Posted: Tue Apr 24, 2012 6:09 pm
by obiwahn
Hi,

I searched a long time to get tax displayed in the email for each single product. This is really quick and dirty. Should be done with vqmod.

I use Version 1.5.1.3

File: catalog/model/checkout/order.php

search: $template->data['products'][] = array(
...);


replace with:

$price = $product['price'] + ($product['tax'] / $product['quantity']);
$total = $product['total'] + $product['tax'];


$template->data['products'][] = array(
'name' => $product['name'],
'model' => $product['model'],
'option' => $option_data,
'quantity' => $product['quantity'],
'price' => $this->currency->format($price, $order_info['currency_code'], $order_info['currency_value']),
'total' => $this->currency->format($total, $order_info['currency_code'], $order_info['currency_value'])
);

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Fri Apr 27, 2012 5:32 pm
by missmonkee
Hiya,

Does anyone have a solution for this for 1.5.2.1?
Would appreciate it very much! This is the last issue I'm having right now with the ordering and tax process!

Thanks!
M

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Wed May 02, 2012 4:12 am
by kabe
Thanks!

I also make this change in admin/controller/sale/order.php around line 1318 search $this->data['products'][] = array( instead of $template->data['products'][] = array( .

Then I have the price inclusive tax at the orders products too, price with tax on single products?

Know someone where you change if you want the same on the invoice

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Fri May 04, 2012 12:35 am
by missmonkee
OMG! Thank you so much! I've been looking for a fix for this for weeks!! Superstar!

Do you have a fix for on the invoice itself within the system... we have the same problem there but I'm not sure where that file is to change...

Any help would be much appreciated!

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Fri May 04, 2012 1:11 am
by missmonkee
Nevermind I see Kabe already posted there ;)

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Fri May 04, 2012 11:12 pm
by kabe
I have also find where I should change so I get the price with tax on single products at the invoice.

It was also in admin/controller/sale/order.php around line 2051add I

$price = $product['price'] + ($product['tax'] / $product['quantity']);
$total = $product['total'] + $product['tax'];

Then I change the line for 'price' => and total' => to:

'price' => $this->currency->format($price, $order_info['currency_code'], $order_info['currency_value']),
'total' => $this->currency->format($total, $order_info['currency_code'], $order_info['currency_value'])

It´s someone who could help to make a vqmod for this? I have try without sucess.

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Mon Sep 17, 2012 3:18 am
by thbr02
I've made a VQMod to take care of these matters. It changes the prices to prices incl taxes at the orders at admin, at invoices and at customers e-mail. It works fine for me with OC 1.5.1.3.. I would like to add the tax at the shipping costs as well, but I'm not sure what code to edit. I would be happy to get some advise. No support at this mod!

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Thu Sep 27, 2012 3:44 am
by kabe
Thanks for that!

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Thu Sep 27, 2012 5:47 am
by thbr02
Updated VQMod shows products incl tax in the confirm page as well.

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Tue Oct 16, 2012 2:12 am
by figge88
Really great work, I hope you can keep it up. Showing shipping cost incl. tax would be the last major tweak I would need to feel satisfied :)
Since you managed to get this far, I'm probably not going to be with any help. But am I right when it should be somewhere in total/shipping.tpl, checkout/shipping.tpl and checkout/guest_shipping.tpl the code needs to be altered?

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Tue Oct 16, 2012 9:17 am
by philbydevil
vQmod for shipping price (sub-total) to include tax:

http://forum.opencart.com/viewtopic.php?f=131&t=86673

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Fri Nov 02, 2012 3:30 pm
by deleteduser
Will this work with OC 1.5.3.1? ???

Re: tax into email (vat mwst mehrwertsteuer)

Posted: Sat Nov 03, 2012 11:13 pm
by thbr02
Give it a try. I don't think it will harm.