Presta.shop Posted April 13, 2018 Share Posted April 13, 2018 (edited) Hello When an invoice is generated, the name of the buyer appears as the billing address, I want the name of the company and the CIF number to appear. Does anyone know how? I think the online way is with a module or filezilla Edited April 17, 2018 by mikel (see edit history) Link to comment Share on other sites More sharing options...
tdsoft Posted April 17, 2018 Share Posted April 17, 2018 Hi, you can modify your invoice in PRESTASHOP_ROOT/pdf/invoice.tpl Link to comment Share on other sites More sharing options...
Presta.shop Posted April 17, 2018 Author Share Posted April 17, 2018 6 hours ago, tdsoft said: Hi, you can modify your invoice in PRESTASHOP_ROOT/pdf/invoice.tpl Thanks Link to comment Share on other sites More sharing options...
Presta.shop Posted April 17, 2018 Author Share Posted April 17, 2018 13 hours ago, tdsoft said: Hi, you can modify your invoice in PRESTASHOP_ROOT/pdf/invoice.tpl this text show this: Quote {$style_tab} <table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;"> <!-- Invoicing --> <tr> <td colspan="12"> {$addresses_tab} </td> </tr> <tr> <td colspan="12" height="30"> </td> </tr> <!-- TVA Info --> <tr> <td colspan="12"> {$summary_tab} </td> </tr> <tr> <td colspan="12" height="20"> </td> </tr> <!-- Product --> <tr> <td colspan="12"> {$product_tab} </td> </tr> <tr> <td colspan="12" height="10"> </td> </tr> <!-- TVA --> <tr> <!-- Code TVA --> <td colspan="6" class="left"> {$tax_tab} </td> <td colspan="1"> </td> <!-- Calcule TVA --> <td colspan="5" rowspan="5" class="right"> {$total_tab} </td> </tr> <tr> <td colspan="12" height="10"> </td> </tr> <tr> <td colspan="6" class="left"> {$payment_tab} </td> <td colspan="1"> </td> </tr> <tr> <td colspan="12" height="10"> </td> </tr> <tr> <td colspan="7" class="left small"> <table> <tr> <td> <p>{$legal_free_text|escape:'html':'UTF-8'|nl2br}</p> </td> </tr> </table> </td> </tr> <!-- Hook --> {if isset($HOOK_DISPLAY_PDF)} <tr> <td colspan="12" height="30"> </td> </tr> <tr> <td colspan="2"> </td> <td colspan="10"> {$HOOK_DISPLAY_PDF} </td> </tr> {/if} </table> i think " {$addresses_tab}" is delivery address and "{$summary_tab}" is billing address. am i right? how can i put "company name" and "SIRET number" Thanks Link to comment Share on other sites More sharing options...
tdsoft Posted April 18, 2018 Share Posted April 18, 2018 Yes, but there variables printed by PHP you can change format in file F:\xam56\htdocs\prestashop_1.7.0.2\classes\AddressFormat.php functions: - generateAddress - getFormattedAddressFieldsValues 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now