Jump to content

How can I use prices excl. tax in order confirmation emails


Recommended Posts

Hi all,

 

Searching for a great while now for this sollution.

Since we are B2B (business to business) my boss wants taxes in email confirmations to be excl. taxes.

 

In the template {total_products}, {total_shipping} and {total_paid} should be replaced with something that represents values exl. tax. lik {total_products_notax}, {total_shipping_notax} and {total_paid_notax} (or existing replacements that do the same)

 

 

In my search I found ways for older versions of prestashop, but what about this issue with 1.6. ....?

 

Can this be done?

 

It's quite important here over in Belgium,

 

 

Thnx in advance

 

 

sven

 

p.s.: I found links like these, but they don't make me a lot wiser :

 

http://www.prestashop.com/forums/topic/252825-variables-in-the-email-templates/

http://www.addons-modules.com/prestashop-tips/tag/order-confirm-email/

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Hi Sven,
 
I had the same problem, managed to fix it by changing this line in /classes/paymentModule.php (Check for override):

'{total_products}' => Tools::displayPrice($order->total_paid - $order->total_shipping - $order->total_wrapping + $order->total_discounts, $this->context->currency, false),

 
Around line +/- 700 to:

//'{total_products}' => Tools::displayPrice($order->total_paid - $order->total_shipping - $order->total_wrapping + $order->total_discounts, $this->context->currency, false),
'{total_products}' => Tools::displayPrice($order->total_products),

 
 
Hope this helps you and many others.

Edited by Adeko (see edit history)
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...