creative7 Posted March 20, 2015 Share Posted March 20, 2015 (edited) Prestashop version 1.5.4.0 I would like to add VAT number to the bottom on the invoice any help greatly appreciated Edited March 31, 2015 by creative7 (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted March 21, 2015 Share Posted March 21, 2015 Do you want your own, fixed VAT number somewhere? Edit file: classes/pdf/HTMLTemplateInvoice.php There you have function: public function getContent() { ... $data = array( 'vat_number' => '123456', // <- add this line, (use your own VAT number...) 'order' => $this->order, 'order_details' => $this->order_invoice->getProducts(), 'cart_rules' => $this->order->getCartRules($this->order_invoice->id), 'delivery_address' => $formatted_delivery_address, 'invoice_address' => $formatted_invoice_address, 'tax_excluded_display' => Group::getPriceDisplayMethod($customer->id_default_group), 'tax_tab' => $this->getTaxTabContent(), 'customer' => $customer ); ... and save. Then edit file: pdf/invoice.tpl And add the following code somewhere you want it: <b>{l s='VAT Number:' pdf='true'}</b><br /> {$vat_number}<br /> <br /> and save. Reload Order Page, click invoice button and see result; Result: If it doesn't show, temporarily turn OFF smarty cache and set option to force compilation (Advanced Parameters->Optimization) N.B. Better is to make overrides instead of changing the core files (problems with upgrading etc). See developers guide for this Hope this helps, pascal 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