renaud2263 Posted May 7, 2016 Share Posted May 7, 2016 Bonjour à Tous, Comme dit dans le titre, je voudrais le N° de client au dessus de l'adresse de facturation. Dans la table address_format, j'ai ajouté id_customer au dessus des autres paramètres pour le pays France. Dans un fichier test, j'écris : $invoiceAddressPatternRules = Tools::jsonDecode(Configuration::get('PS_INVCE_INVOICE_ADDR_RULES'), true); $invoice_address = new Address((int)6691); $country = new Country((int)$invoice_address->id_country); $formatted_invoice_address = AddressFormat::generateAddress($invoice_address, $invoiceAddressPatternRules, '<br />', ' '); echo $formatted_invoice_address; Et ça m'affiche bien l'adresse du client avec son N° au dessus. Mais dans le template, rien, nada, cache vidé etc...pas de N° client. Quelqu'un aurait une idée ? Link to comment Share on other sites More sharing options...
tuk66 Posted May 9, 2016 Share Posted May 9, 2016 Essai {$customer->id} Link to comment Share on other sites More sharing options...
renaud2263 Posted May 9, 2016 Author Share Posted May 9, 2016 Impec ! Merci bien. 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