Results 1 to 10 of 544

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    hi i have read the readme file and i dont know how to: Run the sql statement (shipdate.sql) in your database - If you do not have the "zen" prefix in your database tables, remove it from the SQL statement before executing it.

    can anyone tell me step by step on how to do this?

    Thanks

  2. #2
    Join Date
    Nov 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    hi again..manage to run the sql thingy...but now i have another problem..i am clueless abt where to install the rest of the files...cound anyone help ?

  3. #3
    Join Date
    Nov 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Hi again Friends....Sorry..try to figure out where to add the files...and i finally got it...hehe

  4. #4

    Default Re: Order Delivery Date Support Thread

    MrMeech-
    Thanks for your contribution is it awesome! One quick question and hopefully I didn't miss the answer in the midst of all the pages of this thread. How difficult is it for a customer to be able to select a delivery time as well as date? I have tried to figure this one out on my own with no luck.

    Thanks again!

  5. #5
    Join Date
    Nov 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    MrMeech-

    I would also like to thank you for this contribution. I too am having problems with allowing customers to select delivery times. What I am looking for is something as simple as a text box or drop down list along side or below the date. Also, if possible could the calender be included under a specific type of shipping module. Any help is greatly appreciated.

    Thanks in advance,

    Dave

  6. #6
    Join Date
    Nov 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Hey,

    I'm totally new to Zen-Cart. And I love your Order Delivery Date addon! It's God sent!

    I've tried searching in the forum for a question I have in mind and most probably there's an answer somewhere in this forum. But I can't seem to find it.

    Can someone please help?

    Here's my question: When someone picks a date from the calendar, the default date setting is YYYY-MM-DD both in both the website and the emails sent. How can I change it to DD-MM-YYYY for both the website and email sent?

    Thanks a million!

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Order Delivery Date Support Thread

    I THINK this may help: (Make a backup first!)

    In:-

    includes/modules/pages/checkout_shipping

    Open (in a suitable text/php editor)

    jscript_calendar_head.php

    Modify:

    { date: 'Y-m-d' }
    to { date: 'd-m-Y' }

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    To get D-M-Y in your store, you need to modify the following sections in the english.php files in both your CATALOG and your ADMIN sections:

    (This is the DEFAULT in a standard install of ZC and renders the date as M-D-Y)
    PHP Code:
      @setlocale(LC_TIME'en_US.ISO_8859-1');
      
    define('DATE_FORMAT_SHORT''%m/%d/%Y');  // this is used for strftime()
      
    define('DATE_FORMAT_LONG''%A %d %B, %Y'); // this is used for strftime()
      
    define('DATE_FORMAT''m/d/Y'); // this is used for date()
      
    define('DATE_TIME_FORMAT'DATE_FORMAT_SHORT ' %H:%M:%S');

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
      
    if (!function_exists('zen_date_raw')) {
        function 
    zen_date_raw($date$reverse false) {
          if (
    $reverse) {
            return 
    substr($date32) . substr($date02) . substr($date64);
          } else {
            return 
    substr($date64) . substr($date02) . substr($date32);
          }
        }
      } 
    Look CAREFULLY at the above and apply the shown changes BELOW for UK-Styled D-M-Y format).
    PHP Code:
    @setlocale(LC_TIME'en_UK.ISO_8859-1');
    define('DATE_FORMAT_SHORT''%d/%m/%Y');  // this is used for strftime()
    define('DATE_FORMAT_LONG''%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT''d/m/Y'); // this is used for date()
    define('DATE_TIME_FORMAT'DATE_FORMAT_SHORT ' %H:%M:%S');

    ////
    // Return date in raw format
    // $date should be in format dd/mm/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
      
    if (!function_exists('zen_date_raw')) {
    function 
    zen_date_raw($date$reverse false) {
    if (
    $reverse) {
              return 
    substr($date02) . substr($date32) . substr($date64);
    } else {
      return 
    substr($date64) . substr($date32) . substr($date02);
          }
        }
      } 
    As there is no over-ride system in ADMIN, just edit/over-write the original english.php file.

    For /includes/languages/english.php , you should save the edited copy to your custom folder.

    IMPORTANT NOTE:

    Lower down in english.php, there are additional date defines (such as date of birth define text) that indicate to the shopper, that the format is MDY. Find these and alter them so they indicate the date format to now be DMY
    20 years a Zencart User

 

 

Similar Threads

  1. order delivery date addon - date not showing in checkout
    By jagall in forum Addon Shipping Modules
    Replies: 4
    Last Post: 19 Oct 2017, 09:09 PM
  2. JK Order Exporter - Support Thread
    By eVelt in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Sep 2015, 07:06 AM
  3. v151 Order Delivery date on Product Info Page
    By nicksab in forum General Questions
    Replies: 0
    Last Post: 30 Dec 2013, 03:23 AM
  4. Support Thread for JS Date Picker for options
    By eVelt in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 5 Dec 2013, 05:44 AM
  5. Order Delivery Date Mod
    By fagriffin in forum Addon Shipping Modules
    Replies: 1
    Last Post: 11 Oct 2008, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg