Post by obiwahn » Tue Apr 24, 2012 6:09 pm

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'])
);

Newbie

Posts

Joined
Wed Nov 16, 2011 1:45 am

Post by missmonkee » Fri Apr 27, 2012 5:32 pm

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

Newbie

Posts

Joined
Fri Apr 27, 2012 5:31 pm

Post by kabe » Wed May 02, 2012 4:12 am

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

New member

Posts

Joined
Wed Oct 12, 2011 2:00 am

Post by missmonkee » Fri May 04, 2012 12:35 am

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!

Newbie

Posts

Joined
Fri Apr 27, 2012 5:31 pm

Post by missmonkee » Fri May 04, 2012 1:11 am

Nevermind I see Kabe already posted there ;)

Newbie

Posts

Joined
Fri Apr 27, 2012 5:31 pm

Post by kabe » Fri May 04, 2012 11:12 pm

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.

New member

Posts

Joined
Wed Oct 12, 2011 2:00 am

Post by thbr02 » Mon Sep 17, 2012 3:18 am

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!

Active Member

Posts

Joined
Wed Jun 22, 2011 10:30 pm
Location - Sweden

Post by kabe » Thu Sep 27, 2012 3:44 am

Thanks for that!

New member

Posts

Joined
Wed Oct 12, 2011 2:00 am

Post by thbr02 » Thu Sep 27, 2012 5:47 am

Updated VQMod shows products incl tax in the confirm page as well.

Active Member

Posts

Joined
Wed Jun 22, 2011 10:30 pm
Location - Sweden

Post by figge88 » Tue Oct 16, 2012 2:12 am

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?

New member

Posts

Joined
Tue Apr 10, 2012 12:16 am

Post by philbydevil » Tue Oct 16, 2012 9:17 am

vQmod for shipping price (sub-total) to include tax:

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

I Image cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am
Location - Sunshine Coast, Australia

Post by deleteduser » Fri Nov 02, 2012 3:30 pm

Will this work with OC 1.5.3.1? ???

Newbie

Posts

Joined
Fri Nov 02, 2012 3:29 pm

Post by thbr02 » Sat Nov 03, 2012 11:13 pm

Give it a try. I don't think it will harm.

Active Member

Posts

Joined
Wed Jun 22, 2011 10:30 pm
Location - Sweden
Who is online

Users browsing this forum: No registered users and 1 guest