sooroos Posted September 14, 2013 Share Posted September 14, 2013 hi, can anyone tell me how can i get long date format in mail alerts? for now it is dd-mm-yyyy and i would like to have dd-mm-yyyy hh:ss this is what i have in mailalerts.php: $order_date_text = Tools::displayDate($order->date_add, (int)$id_lang); '{date}' => $order_date_text Link to comment Share on other sites More sharing options...
NemoPS Posted September 14, 2013 Share Posted September 14, 2013 By default it uses the store's date fomat. If you want you can change that Tools::displayDate to a normal date using date(' add your format here', strtotime($order_date_text)) Link to comment Share on other sites More sharing options...
sooroos Posted September 15, 2013 Author Share Posted September 15, 2013 hmm, not working Link to comment Share on other sites More sharing options...
Kaspi88 Posted February 6, 2014 Share Posted February 6, 2014 http://prestashopcesky.cz/nejen-datum-ale-i-cas-v-emailu-objednavky-mailalerts-ps-1-5/ Link to comment Share on other sites More sharing options...
Recommended Posts