ianric Posted February 22, 2007 Posted February 22, 2007 Hi My account history pages seem a little cluttered so I would like to change the date the product was ordered. I've tried the date short but that gives 22/02/2007. I would like it to say 21 Feb 2007. I've searched and googled and it seems it is in the english.php but I can't get it to work. Hope someone can help TIA Ian
Velveeta Posted February 22, 2007 Posted February 22, 2007 HiMy account history pages seem a little cluttered so I would like to change the date the product was ordered. I've tried the date short but that gives 22/02/2007. I would like it to say 21 Feb 2007. I've searched and googled and it seems it is in the english.php but I can't get it to work. Hope someone can help TIA Ian You can do this one of 2 ways... Make a new entry for it in english.php, or else modify the existing entry... However, if you modify the existing one, any other places in your store that call that will get the new format... So if you only want this to apply in 1 place, rather than globally, make a new entry, otherwise you can just modify the existing entry... Here's how to do it: Find this in english.php: define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() Change it to this, or add a new entry by a different name (and call that different name in the account history page): define('DATE_FORMAT_SHORT', '%d %M %Y'); // this is used for strftime() Richard. Richard Lindsey
ianric Posted February 22, 2007 Author Posted February 22, 2007 You can do this one of 2 ways... Make a new entry for it in english.php, or else modify the existing entry... However, if you modify the existing one, any other places in your store that call that will get the new format... So if you only want this to apply in 1 place, rather than globally, make a new entry, otherwise you can just modify the existing entry... Here's how to do it: Find this in english.php: define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() Change it to this, or add a new entry by a different name (and call that different name in the account history page): define('DATE_FORMAT_SHORT', '%d %M %Y'); // this is used for strftime() Richard. Hi Thanks for the quick reply. This is the setting I was messing with but it didn't work. I also had to change the date format to define('DATE_FORMAT', 'd M Y'); // this is used for date() Now it works thanks Ian
Recommended Posts
Archived
This topic is now archived and is closed to further replies.