
Originally Posted by
mrmeech
Ok - i took a look.
I think your approach with editing the English.php file is not the best of ideas (partially because it's a core file).
The date on the checkout_shipping page where the dropdown calendar is, cannot be varied. That one HAS to show in the Y-m-d format or else it will not get inserted into the database in the right format and the date will be wrong.
Aside from that, once you're past that page you should be able to echo out the date in whatever format you want - and you can configure this on includes/templates/YOUR-TEMPLATE/tpl_checkout_confirmation_default.php
As for altering the email delivery date formatting, you need to look in the monster order.php file which lives inside includes/classes. Look around line 900~940-ish. (I think there might be another spot somewhere in that file that needs email editing too but i don't ahve the time to dig for it right now)..
That should put you on a pretty good track.
I am wanting to do the same thing and get the delivery date in the confirmation email to be in the style of like "Monday 16 February, 2009"
in the order.php file I tried changing
Code:
$html_msg['EMAIL_TEXT_DELIVERY_DATE'] = EMAIL_TEXT_DELIVERY_DATE . ' ' . zen_db_output($this->info['order_delivery_date']);
to
Code:
$html_msg['EMAIL_TEXT_DELIVERY_DATE'] = strftime(DATE_FORMAT_LONG);
but his did not work. Can anyone help?
Bookmarks