7m7g7 Posted September 11, 2014 Share Posted September 11, 2014 Hello, Is it possible to add the order number given by the customer to emails and pdf? (b2b, 1.6.0.9) Link to comment Share on other sites More sharing options...
Timactive Posted September 11, 2014 Share Posted September 11, 2014 Hi 7m7g7, 1 - PDF Yes you can do that with overload pdf template with your theme Example invoice : copy yourshopdirectory/pdf/invoice.tpl yourshopdirectory/themes/yourtheme/pdf/invoice.tpl And you can replace <b>{l s='Order Number:' pdf='true'}</b><br /> {$order->getUniqReference()}<br /> <br /> By <b>{l s='Order Number:' pdf='true'}</b><br /> {$order->id}<br /> <br /> 2 - MAIL Use traduction mails For exemple add {id_order} in order_changed mails. Link to comment Share on other sites More sharing options...
7m7g7 Posted September 11, 2014 Author Share Posted September 11, 2014 Thank you for your kind reply. But I am looking for the possibility to enter an order reference issued by the customer, to be added manually by the customer or by the sales person, when a new order is created. Our business partner usually require their own reference to be printed on all documents. Link to comment Share on other sites More sharing options...
Timactive Posted September 11, 2014 Share Posted September 11, 2014 Okay b2b, This field is it stored in a database or Where is this information stored? (eg : order_customer_reference) With the information you provide me : I think the better solution is create a module, in this module you can listen hookadmin and write this information directly in order admin. But After you need to override multiple class in Prestashop to add this variable and use in all mail and pdf. Link to comment Share on other sites More sharing options...
Recommended Posts