Loading...

Displaying the tax registry number on the invoice

We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.

  • This article is available only for CS-Cart versions:
  • 1.3.5
  1. Open the invoice.tpl template located in the skins/[CUSTOMER_ACTIVE_SKIN]/mail/ orders directory of your CS-Cart installation (where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront.
  2. Find and replace the following part of code there:
    <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td valign="top" style="font-family: Tahoma,Arial, Verdana,Tahoma; font-size:11px">
                        <div align="center" style="font-size:22px; font-family: Tahoma,Arial; text-transform: uppercase;" nowrap="nowrap"><b>{$lang.invoice_title}</b></div>
                        <b>{$lang.order}:</b> &nbsp;#{$order_info.order_id} <br />
                        <b>{$lang.status}:</b> &nbsp;{include file="orders/order_status.tpl" status=$order_info.status display="view"}<br />
                        <b>{$lang.date}:</b> &nbsp;{$order_info.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}<br />
                        <b>{$lang.payment_method}:</b> &nbsp;{$order_info.payment_method.payment}<br />
                        {if $order_info.shipping}
                        <b>{$lang.shipping_method}:</b> &nbsp;{foreach from=$order_info.shipping item="shipping" name="f_shipp"}{$shipping.shipping}{if !$smarty.foreach.f_shipp.last}, {/if}{if $shipping.tracking_number}{assign var="tracking_number_exists" value="Y"}{/if}{/foreach}<br />
                        {if $tracking_number_exists}
                        <b>{$lang.tracking_number}:</b> &nbsp;{foreach from=$order_info.shipping item="shipping" name="f_shipp"}{if $shipping.tracking_number}{$shipping.tracking_number}{if !$smarty.foreach.f_shipp.last},{/if}{/if}{/foreach}<br />
                        {/if}
                        {/if}
                    </td>
                </tr>
                </table>

    with this one:
    <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td valign="top" style="font-family: Tahoma,Arial, Verdana,Tahoma; font-size:11px">
                        <div align="center" style="font-size:22px; font-family: Tahoma,Arial; text-transform: uppercase;" nowrap="nowrap"><b>{$lang.invoice_title}</b></div>
                        <b>{$lang.order}:</b> &nbsp;#{$order_info.order_id} <br />
                                        {if $order_info.taxes}
                                           {foreach from=$order_info.taxes item=tax_data}
                                          {if $tax_data.regnumber}
                                                        <b>{$lang.registration_number}:</b>&nbsp;{$tax_data.regnumber}<br/>
                                                  {/if}
                                                {/foreach}
                                             {/if}
                        <b>{$lang.status}:</b> &nbsp;{include file="orders/order_status.tpl" status=$order_info.status display="view"}<br />
                        <b>{$lang.date}:</b> &nbsp;{$order_info.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}<br />
                        <b>{$lang.payment_method}:</b> &nbsp;{$order_info.payment_method.payment}<br />
                        {if $order_info.shipping}
                        <b>{$lang.shipping_method}:</b> &nbsp;{foreach from=$order_info.shipping item="shipping" name="f_shipp"}{$shipping.shipping}{if !$smarty.foreach.f_shipp.last}, {/if}{if $shipping.tracking_number}{assign var="tracking_number_exists" value="Y"}{/if}{/foreach}<br />
                        {if $tracking_number_exists}
                        <b>{$lang.tracking_number}:</b> &nbsp;{foreach from=$order_info.shipping item="shipping" name="f_shipp"}{if $shipping.tracking_number}{$shipping.tracking_number}{if !$smarty.foreach.f_shipp.last},{/if}{/if}{/foreach}<br />
                        {/if}
                        {/if}
                    </td>
                </tr>
                </table>
  3. Save the file.
Home / Knowledge base / Orders / Displaying the tax registry number on the invoice