JimmyLabuche Posted February 14, 2016 Share Posted February 14, 2016 (edited) Bonsoir à tous, Est-il possible de récupérer séparément Le jour, Le mois et l'année d'une commande ? Je suis en train de modifier l'apparence de la page historique de commande et je ne sais pas comment faire. En effet la date s'affiche en entier systématiquement, or j'aimerais changer le style de présentation de la date. Merci par avance, Florian MARTY Edited February 14, 2016 by JimmyLabuche (see edit history) Link to comment Share on other sites More sharing options...
erouvier29 Posted February 14, 2016 Share Posted February 14, 2016 Dans le tpl, vous pouvez utiliser le modifier smarty "date_format" (cf. http://www.smarty.net/docsv2/fr/language.modifier.date.format.tpl). Par exemple {$order.date_add|date_format:"%d"} pour afficher uniquement le jour. Link to comment Share on other sites More sharing options...
JimmyLabuche Posted February 14, 2016 Author Share Posted February 14, 2016 Merci beaucoup pour votre réponse !! Cela répond parfaitement à ma question !! 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