SpectromFR Posted March 31 Share Posted March 31 Hello everyone, I'm looking for the code to put in the invoice to display the payment date. Can someone help me? Best regards Link to comment Share on other sites More sharing options...
Knowband Plugins Posted March 31 Share Posted March 31 Which date are you considering as the Payment date i.e. Order Date OR something else ? Link to comment Share on other sites More sharing options...
SpectromFR Posted March 31 Author Share Posted March 31 Hello, I would like to display the payment date for my order. PayPal order dated 01/01/2025 with same-day payment, it displays 01/01/2025. Order by bank transfer dated 01/01/2025 and payment received on 04/01/2025, it displays 04/01/2025. I think it's a code that looks like this: {dateFormat date=$order->date_dateofpayment} Link to comment Share on other sites More sharing options...
Webkul Solutions Posted April 30 Share Posted April 30 You need to modify the core file: '/classes/pdf/HTMLTemplateInvoice.php' Please remove or comment out this line: https://github.com/PrestaShop/PrestaShop/blob/8.2.0/classes/pdf/HTMLTemplateInvoice.php#L74 Then, add the following line in its place: $this->date = Tools::displayDate($this->order->date_add); 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