Jump to content

How to add tax variable to invoice-tax-tab-tpl **SOLVED**


sebastian_a2

Recommended Posts

Hello, i'm customizing a invoice for the first time and i need some extra variables .

 

The code of invoice-tax-tab.tpl : 

{if isset($shipping_tax_breakdown)}
				{foreach $shipping_tax_breakdown as $shipping_tax_infos}
				<tr style="line-height:6px;">
				 {if !$use_one_after_another_method}
			<td style="width: 40%; text-align: left;">{if isset($is_order_slip) && $is_order_slip}- {/if}{displayPrice currency=$order->id_currency price=$shipping_tax_infos.total_tax_excl}</td>
				{/if}
				 <td style="width: 20%; text-align: right;">{$shipping_tax_infos.rate} %</td>
 				
				 <td style="width: 20%; text-align: right;">{if isset($is_order_slip) && $is_order_slip}- {/if}{displayPrice currency=$order->id_currency price=$shipping_tax_infos.total_amount}</td>
				 <td style="width: 30%; text-align: right;">{if isset($is_order_slip) && $is_order_slip}- {/if}{displayPrice currency=$order->id_currency price=$shipping_tax_infos.total_amount}</td>
				</tr>
				{/foreach}
				{/if}

The last <td> must be $shipping_tax_infos.total_tax_excl (+)  $order->id_currency price=$shipping_tax_infos.total_amount}

 

This peace of code is only about shippin, above that table is the product table and i have to place the same variable.
 

 

Thank you for the help.

 

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