Jump to content

Adding Tax to Product totals BO order page - Tutorial


Recommended Posts

Prestashop 1.6

 

This will add a Tax line to the totals at bottom of order page and update the total to include tax.

 

 

Edit administrator\themes\default\template\controllers\orders\helpers\view\view.tpl

 

 

Add the code below just above {* Assign order price *} as shown, this will be just below the closing </tr> of the Shipping section

The code added will be around line 1047

You also need to change the Product total to include tax as shown below.

 

 

Add This:                    <tr id="total_tax">

                                      <td class="text-right">{l s='Tax:' }</td>

                                      <td class="amount text-right" >{displayPrice currency=$order->id_currency price=(

                                       <td class="amount text-right" >{displayPrice currency=$order->id_currency price=(

                                            $orders_total_paid_tax_incl - $order_product_price - $order->total_shipping_tax_incl -

                                               $order->total_wrapping_tax_incl) }</td>

                                    </tr>

 

                                       {* Assign order price *}

                                       {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}

                                       {assign var=order_total_price value=($order->total_paid_tax_excl)}

                                        {else}

                                       {assign var=order_total_price value=$order->total_paid_tax_incl}

                                          {/if}

                                        <tr id="total_order">

                                        <td class="text-right"><strong>{l s='Total'}</strong></td>

                                        <td class="amount text-right">

Change this line:              <strong>{displayPrice price=$orders_total_paid_tax_incl currency=$currency->id}</strong>

                                        </td>

                                        <td class="partial_refund_fields current-edit" style="display:none;"></td>

                                        </tr>

Edited by tdr170 (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...