Jump to content

email template not calculating no_tax price


Recommended Posts

Hi,

I editet my e-mail template to show the product no tax price

 

I added these lines to PaymentModule.php

 

  $total_products_notax = $order->total_products;
  $total_products = $order->total_paid - $order->total_shipping - $order->total_wrapping + $order->total_discounts;
  $total_paid_notax = $total_products_notax + $order->total_shipping + $order->total_wrapping - $order->total_discounts;
  $total_paid = $total_paid_notax * 1.20;
  $total_tax = $total_paid - $total_paid_notax;

 

I also added this line to mailalerts.php:

 

'{total_products_notax}' => Tools::displayPrice($total_products_notax),

 

The problem is that in my email template the no_tax price is always shown as 0.00€.

Can someone tell me what I have done wrong.

Link to comment
Share on other sites

  • 1 year later...

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...