Jump to content

Final price (With taxes) in the product order details table


Chancho1938

Recommended Posts

In prestashop 1.7.2 we wanted to display final price with taxes in the product order details. We want to share this solution with you.

 

  1. Open for editing /document-root/adminfolder/themes/default/template/controllers/orders/ _product_line.tpl
  2. Add the following lines at the beginning of the file before {* Assign product price *} 
{* Assign retail product price wit taxes *}
{assign var=product_price_retail value=$product['price'] * (($product['tax_rate']/100) +1)}

Then  change the variable in about line 60.



<span class="product_price_show">{displayPrice price=$product_price_retail currency=$currency->id}</span>

 

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

I try Your solution right now and seems very good it work perfect

The Only thing is the result on total tax included you will get:

Tax 35,00 Eur (example) tax 7,20 (example)

i would as result

Total Tax Included  35,00 Euro but did not find yet solution

Link to comment
Share on other sites

  • 7 months later...
  • 7 months later...

Same problem with PS 1.7.7.3 i cant find:

AdminOrdersController.php or /document-root/adminfolder/themes/default/template/controllers/orders/ _product_line.tpl to change

Any help, please? Thanks so much

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