Jump to content

afficher ID-ORDER sur facture PrestaShop 1.5

Recommended Posts

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%">
                <td style="font-weight: bold; font-size: 12pt; color: #9E9F9E; width: 100%">{$shop_name|escape:'htmlall':'UTF-8'}</td>
                <td style="font-weight: bold; font-size: 24pt; color: #000000">{$title|escape:'htmlall':'UTF-8'}</td>
                <td style="font-weight: bold; font-size: 24pt; color: #000000">{$id_order|escape:'htmlall':'UTF-8'}</td>




mais ca ne marche pas.

Merci de votre aide

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More