led24ee Posted August 13, 2018 Posted August 13, 2018 How to add SELLER to invoice template with translation. Find file : invoice.addresses-tab.tpl (root/pdf/) make changes on first row and add "Seller" with possibility to translate it. This header is part in many template. {if isset($order_invoice)}{l s='Seller' pdf='true'}{/if} How to add SENDER to delivery slip Find file : delivery-slip.addresses-tab.tpl (root/pdf/) make changes on first row and add "Sender" with possibility to translate it. Now You need to make translation in PDF section. Same way You can make modifications to (root/classes/pdf) INVOICE HTMLTemplateInvoice.php DELIVERY SLIP HTMLTemplateDeliverySlip.php CREDIT SLIP HTMLTemplateOrderSlip.php ORDER RETURN HTMLTemplateOrderReturn.php To translate these find in files function: public function getheader() and add translation possibilty the result can be like this : public function getHeader() { $this->assignCommonHeaderData(); $this->smarty->assign(['header' => ($this->l('Invoice'))]);
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