How To: Add Tax field vor each vendor (Mutlivendor)

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` ;



-



Step 3

Open skins/basic/admin/views/companies/update.php

go to line 108 and add after



{if !"COMPANY_ID"|defined}






{/if}




this

```php



{$lang.vendor_tax_nr}:


```

-

Step 4
Open core/fn.companies.php
go to line 877

after ```php 'company_fax' => $company['fax'], ```
add ```php 'company_vendor_tax_nr' => $company['vendor_tax_nr'], ```

-

Step 5
open skins/basic/mail/orders/invoice.php (i dont us Packingslip, well you must paste it there by your self)
after
```php {if $company_placement_info.company_orders_department}

{$lang.email}:
{$company_placement_info.company_orders_department|replace:",":"
"|replace:" ":""}


{/if} ```

add
```php {if $company_placement_info.company_vendor_tax_nr}

{$lang.vendor_tax_nr}:
{$company_placement_info.company_vendor_tax_nr}

{/if} ```



i have removet this code in the Invoice.php because i dont need it. ```php {if $tax_data.regnumber} ({$tax_data.regnumber}){/if} ```

Done.