Jump to content

Order confirmation email... Total amount VAT included


DARKF3D3

Recommended Posts

I'm using PS 1.6.0.9 and looking at the email confirmation I noticed a strange thing.
All the prices and totals are showed included tax except for the "Total Products" that it's showed without tax.

Into the email template i have:
Totale prodotti {total_products}
Buoni sconto {total_discounts}
Spedizione {total_shipping}
Totale pagato {total_paid}


How can I show also 'total products' included taxes?

Edited by DARKF3D3 (see edit history)
Link to comment
Share on other sites

Hi,

 

you have to make some changes in classes/PaymentModule.php file (or better write an override) around line 700 where the fields for the customer's email are prepared.

In particular you'll need to change this line:

 

'{total_products}' => Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? $order->total_products : $order->total_products_wt, $this->context->currency, false),

 

you probably need only

 

'{total_products}' =>Tools::displayPrice($order->total_products_wt, $this->context->currency, false)

 

I hope this helps,

Federica

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...