Gregpresta1 Posted January 21, 2021 Share Posted January 21, 2021 Bonjour je cherche a afficher id_ order sur mes factures ou carrément remplacer le numero de facture par le id_order, j'ai cherché ou mal cherché mais rien ne s'applique vraiment a ce que je veux faire. dans mon invoice.tpl j ai ca: public function __construct(OrderInvoice $order_invoice, $smarty) { $this->order_invoice = $order_invoice; $this->order = new Order((int)$this->order_invoice->id_order); $this->smarty->assign(array('id_order'=> $id_order; $this->smarty = $smarty; dans mon header.tpl: <table style="width: 100%"> <tr> <td style="font-weight: bold; font-size: 12pt; color: #9E9F9E; width: 100%">{$shop_name|escape:'htmlall':'UTF-8'}</td> </tr> <tr> <td style="font-weight: bold; font-size: 24pt; color: #000000">{$title|escape:'htmlall':'UTF-8'}</td> </tr> <tr> <td style="font-weight: bold; font-size: 24pt; color: #000000">{$id_order|escape:'htmlall':'UTF-8'}</td> </tr> </table> mais ca ne marche pas. Merci de votre aide Link to comment Share on other sites More sharing options...
Alexandre Carette Posted January 21, 2021 Share Posted January 21, 2021 bonjour vous parlez des factures en pdf ? cdt Link to comment Share on other sites More sharing options...
Gregpresta1 Posted January 21, 2021 Author Share Posted January 21, 2021 Oui merci 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