PrestaDesigner10 Posted September 19, 2017 Share Posted September 19, 2017 Hello, Prestashop 1.7.2 shows the date order and the date invoice on the invoice PDF. The problem is that these dates are the same... I need that the date of the invoice to be the same of the day when I generate the PDF, not the day of the order. This is very important. Is it possible? This is the piece of code of invoice.summary-tab.tpl <tr> <td class="small white">{$title|escape:'html':'UTF-8'}</td> <td class="small white">{dateFormat date=$order->invoice_date full=0}</td> <td class="small white">{$order->getUniqReference()}</td> <td class="small white">{dateFormat date=$order->date_add full=0}</td> {if $addresses.invoice->vat_number} <td class=" small white"> {$addresses.invoice->vat_number} </td> {/if} </tr> Thank you. Link to comment Share on other sites More sharing options...
tuk66 Posted September 20, 2017 Share Posted September 20, 2017 Try {dateFormat date=$smarty.now full=0} Link to comment Share on other sites More sharing options...
Max Clee Posted January 31, 2022 Share Posted January 31, 2022 Hi @tuk66 doesn't work, how to assign time from some another Status ? Link to comment Share on other sites More sharing options...
Max Clee Posted January 31, 2022 Share Posted January 31, 2022 Hi again <td class="center white">{dateFormat date=$order-> date_upd full=0}</td> it gives date last status change 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