Jump to content

order reference from customer


Recommended Posts

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

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

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

×
×
  • Create New...