Page 1 of 2 12 LastLast
Results 1 to 10 of 544

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    101
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    This sounds great! Exactly what I was looking for for my personal gift store!
    Personalized candy favors and gifts: http://www.westcoastfavors.com

    The Sea Crew: http://www.theseacrew.com/shop/

  2. #2
    Join Date
    Nov 2006
    Location
    New York City
    Posts
    248
    Plugin Contributions
    1

    Default Re: Order Delivery Date Support Thread

    The download link is now available:

    http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=976

    Please let me know how this works out for you - If the installation went smoothly, please let me know! Or, if you ran into any problems or have any suggestions, please let me know that as well.

    Thanks!

  3. #3
    Join Date
    Aug 2005
    Location
    Johnstown, PA, USA
    Posts
    45
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    mrmeech,

    Thank you for this contribution it is exactly what I was looking for. Installation went well although I did make a few changes to integrate with Ty's tracking module.

    Thanks again!!

  4. #4
    Join Date
    Nov 2006
    Location
    New York City
    Posts
    248
    Plugin Contributions
    1

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by duffy View Post
    mrmeech,

    Thank you for this contribution it is exactly what I was looking for. Installation went well although I did make a few changes to integrate with Ty's tracking module.

    Thanks again!!
    I'm glad it worked out for ya. :)

  5. #5
    Join Date
    Aug 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    This is a great addition! Thank you.

    I have one question though. the site I'm working on offers same day delivery if they order before 10am. Is there any way that I can have it not have today's date listed after 10 am???

  6. #6
    Join Date
    Nov 2006
    Location
    New York City
    Posts
    248
    Plugin Contributions
    1

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by pinixdesign View Post
    This is a great addition! Thank you.

    I have one question though. the site I'm working on offers same day delivery if they order before 10am. Is there any way that I can have it not have today's date listed after 10 am???
    I just wrote some code for ya - Open up /includes/templates/YOURTEMPLATE/templates/tpl_checkout_shipping_default.php

    Find this code (it's near the bottom):
    Code:
    <!-- Bof Ship Date -->
    <fieldset class="shipping" id="order_delivery_date">
    <legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
    <select name="order_delivery_date">
    <?php
    for ($i=0, $n=50; $i < $n; $i++) {
        $now[$i] = strtotime ("+$i day", time());
        if ( strftime ("%w",$now[$i])<>0
            AND strftime ("%m-%d",$now[$i])<>"12-25"
            AND strftime ("%m-%d",$now[$i])<>"12-26"
            AND strftime ("%m-%d",$now[$i])<>"01-01"
        ){
            echo '<option value="'.strftime ("%Y-%m-%d",$now[$i]).'">'.strftime ("%A %d %B %Y",$now[$i]).'</option>';
        }
    }
    ?>
    </select>
    </fieldset>
    <!-- Eof Ship Date -->
    And replace it with this:

    Code:
    <!-- Bof Ship Date -->
    <fieldset class="shipping" id="order_delivery_date">
    <legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
    <select name="order_delivery_date">
    
    <?php
    
    $current_time = (date("h:ia"));
    $current_hour = (date("H")); // 24 hour time as two digits
    $begin_cutoff_hour = '10'; // set on a 24 hour time clock
    $end_cutoff_hour = '19'; // set on a 24 basis - "19" would be 7pm
    $time_zone_adjust = '0'; // use this to adjust your hour value forward or backwards
    $display_current_time = false; // Chage to "true" to check your system time for adjustments to $time_zone_adjust. Result will be echo'd to browser below ship date dropdown menu
    
    $current_adjusted_hour = ($current_hour + $time_zone_adjust);
    
    if($current_adjusted_hour <= $begin_cutoff_hour) {
            $date_offset = '0';
            }
        else {
            $date_offset = '1';
            }
    
    for ($i=$date_offset, $n=50; $i < $n; $i++) {
        $now[$i] = strtotime ("+$i day", time());
        if ( strftime ("%w",$now[$i])<>0
            AND strftime ("%m-%d",$now[$i])<>"12-25"
            AND strftime ("%m-%d",$now[$i])<>"12-26"
            AND strftime ("%m-%d",$now[$i])<>"01-01"
            ){
            echo '<option value="'.strftime ("%Y-%m-%d",$now[$i]).'">'.strftime ("%A %d %B %Y",$now[$i]).'</option>';
            }
    }
    ?>
    </select>
    </fieldset>
    <?PHP
    if ($display_current_time == true) {
        echo "YOUR SYSTEM TIME IS $current_time";
        }
    ?>
    <!-- Eof Ship Date -->
    Change $display_current_time to true to see if the time output by the server/browser matches your time zone, and then adjust $time_zone_adjust as needed.

    Let me know if this works for ya..
    Last edited by mrmeech; 8 Apr 2008 at 11:38 PM.

  7. #7
    Join Date
    Aug 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Thank you so much! It seems to be working great so far. I will test it tomorrow morning just to be sure. You are a life saver!

  8. #8
    Join Date
    Mar 2011
    Location
    Ireland
    Posts
    286
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by mrmeech View Post
    I just wrote some code for ya - Open up /includes/templates/YOURTEMPLATE/templates/tpl_checkout_shipping_default.php

    Find this code (it's near the bottom):
    Code:
    <!-- Bof Ship Date -->
    <fieldset class="shipping" id="order_delivery_date">
    <legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
    <select name="order_delivery_date">
    <?php
    for ($i=0, $n=50; $i < $n; $i++) {
        $now[$i] = strtotime ("+$i day", time());
        if ( strftime ("%w",$now[$i])<>0
            AND strftime ("%m-%d",$now[$i])<>"12-25"
            AND strftime ("%m-%d",$now[$i])<>"12-26"
            AND strftime ("%m-%d",$now[$i])<>"01-01"
        ){
            echo '<option value="'.strftime ("%Y-%m-%d",$now[$i]).'">'.strftime ("%A %d %B %Y",$now[$i]).'</option>';
        }
    }
    ?>
    </select>
    </fieldset>
    <!-- Eof Ship Date -->
    And replace it with this:

    Code:
    <!-- Bof Ship Date -->
    <fieldset class="shipping" id="order_delivery_date">
    <legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
    <select name="order_delivery_date">
    
    <?php
    
    $current_time = (date("h:ia"));
    $current_hour = (date("H")); // 24 hour time as two digits
    $begin_cutoff_hour = '10'; // set on a 24 hour time clock
    $end_cutoff_hour = '19'; // set on a 24 basis - "19" would be 7pm
    $time_zone_adjust = '0'; // use this to adjust your hour value forward or backwards
    $display_current_time = false; // Chage to "true" to check your system time for adjustments to $time_zone_adjust. Result will be echo'd to browser below ship date dropdown menu
    
    $current_adjusted_hour = ($current_hour + $time_zone_adjust);
    
    if($current_adjusted_hour <= $begin_cutoff_hour) {
            $date_offset = '0';
            }
        else {
            $date_offset = '1';
            }
    
    for ($i=$date_offset, $n=50; $i < $n; $i++) {
        $now[$i] = strtotime ("+$i day", time());
        if ( strftime ("%w",$now[$i])<>0
            AND strftime ("%m-%d",$now[$i])<>"12-25"
            AND strftime ("%m-%d",$now[$i])<>"12-26"
            AND strftime ("%m-%d",$now[$i])<>"01-01"
            ){
            echo '<option value="'.strftime ("%Y-%m-%d",$now[$i]).'">'.strftime ("%A %d %B %Y",$now[$i]).'</option>';
            }
    }
    ?>
    </select>
    </fieldset>
    <?PHP
    if ($display_current_time == true) {
        echo "YOUR SYSTEM TIME IS $current_time";
        }
    ?>
    <!-- Eof Ship Date -->
    Change $display_current_time to true to see if the time output by the server/browser matches your time zone, and then adjust $time_zone_adjust as needed.

    Let me know if this works for ya..

    I know this mod has been updated since this post but just wondering whether there was anyway around setting cut-off time for ordering e.g. if order place before 10am then delivery is 24hrs from then if after 10am is 48 hrs. hopefully someone has some ideas on this thanks

  9. #9
    Join Date
    May 2015
    Posts
    6
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Hi I have one question can I specify the delivery date while we insert the product by admin panel at that time only........?

  10. #10
    Join Date
    Oct 2004
    Posts
    31
    Plugin Contributions
    0

    Idea or Suggestion Re: Order Delivery Date Support Thread

    Quote Originally Posted by mrmeech View Post
    Alrighty, it has been approved.

    You can find the contribution here:

    http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=976

    Please let me know how this works out for you - If the installation went smoothly, please let me know! Or, if you ran into any problems or have any suggestions, please let me know that as well.

    Thanks!
    Hi I have installed this plugin and having a problem with it. It wont let my customers choose a delivery date. TABLE_HEADING_DELIVERY_DATE
    Date:


    Zen Cart 1.5.1

    Database Patch Level: 1.5.1

    v1.5.1 [2013-10-14 20:11:52] (New Installation)
    v1.5.1 [2013-10-14 20:11:52] (New Installation)

    Thank you for your time to help..

 

 
Page 1 of 2 12 LastLast

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