I my case for Multivendor the Tax Number field in the Invoice display only the tyx number from the root shop.
This is not corect for creating invoices for other Shops.
Her is e little how to.
Files required:
skins/basic/admin/views/companies/update.php
core/fn.companies.php
skins/basic/mail/orders/invoice.php
Step 1
go to Administration > Languages and create new Languages Variable-> vendor_tax_nr in my case the value MWST-Nr.
-
Step 2
add new table in your Database:
Run this SQL command:
ALTER TABLE `cscart_companies` ADD `vendor_tax_nr` VARCHAR(50) AFTER `fax` ;
```<br />
<br />
-<br />
<br />
Step 3 <br />
Open skins/basic/admin/views/companies/update.php <br />
go to line 108 and add after <br />
<br />
```php
<br />
{if !"COMPANY_ID"|defined}<br />
<div class="form-field"><br />
<label for="company_vendor_commission">{$lang.vendor_commission}:</label><br />
<input type="text" name="company_data[commission]" id="company_vendor_commission" value="{$company_data.commission}" class="input-text-medium" /><br />
<select name="company_data[commission_type]"><br />
<option value="A" {if $company_data.commission_type == "A"}selected="selected"{/if}>{$currencies.$primary_currency.symbol}</option><br />
<option value="P" {if $company_data.commission_type == "P"}selected="selected"{/if}>%</option><br />
</select><br />
</div><br />
{/if}
```<br />
<br />
this <br />
```php
<br />
<div class="form-field"><br />
<label for="vendor_tax_nr">{$lang.vendor_tax_nr}:</label><br />
<input type="text" name="company_data[vendor_tax_nr]" id="vendor_tax_nr" size="32" value="{$company_data.vendor_tax_nr}" class="input-text" /><br />
</div>
```<br />
<br />
-<br />
<br />
Step 4 <br />
Open core/fn.companies.php<br />
go to line 877 <br />
<br />
after ```php
'company_fax' => $company['fax'],
```<br />
add ```php
'company_vendor_tax_nr' => $company['vendor_tax_nr'],
```<br />
<br />
- <br />
<br />
Step 5 <br />
open skins/basic/mail/orders/invoice.php (i dont us Packingslip, well you must paste it there by your self) <br />
after <br />
```php
{if $company_placement_info.company_orders_department}<br />
<tr valign="top"><br />
<td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;">{$lang.email}:</td><br />
<td width="100%" style="font-size: 12px; font-family: Arial;"><a href="mailto:{$company_placement_info.company_orders_department}">{$company_placement_info.company_orders_department|replace:",":"<br>"|replace:" ":""}</a></td><br />
</tr><br />
{/if}
```<br />
<br />
add<br />
```php
{if $company_placement_info.company_vendor_tax_nr}<br />
<tr valign="top"><br />
<td style="font-size: 9px; font-family: arial; color: #000000; padding-right: 10px; white-space: nowrap;">{$lang.vendor_tax_nr}:</td><br />
<td width="100%" style="font-size: 12px; font-family: Arial;">{$company_placement_info.company_vendor_tax_nr}</td><br />
</tr><br />
{/if}
```<br />
<br />
<br />
<br />
i have removet this code in the Invoice.php because i dont need it. ```php
{if $tax_data.regnumber} ({$tax_data.regnumber}){/if}
```<br />
<br />
Done.