Jump to content

(SOLVED) Customized date format, different from Prestashop settings


siomosp

Recommended Posts

I am sharing my solution for displaying a customized date format at specific part of order details page

This works for me for displaying order date, eg date "Feb 7" , instead of standard Presta format for my language, "2020-02-07".

Code inserted at "_product_line.tpl"

$order->date_add|date_format:"%b %e"}

PS 1.7.5.1

Edited by siomosp (see edit history)
Link to comment
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...