Results 1 to 10 of 544

Hybrid View

  1. #1
    Join Date
    May 2004
    Posts
    105
    Plugin Contributions
    2

    help question Re: Order Delivery Date Support Thread

    I have used this module for a pick-up date and time.

    I've managed to get a time field and it does work...except I'm having an issue with the display of the time on the checkout confirmation page. it's showing up as this:
    Desired Pick-up Date
    Thursday 16 August, 20121345146906

    I created a function for the time as such:


    function zen_time($raw_time) {
    if ( ($raw_time == '00:00:00') || ($raw_time == '') ) return false;

    $hour = substr($raw_time, 11, 2);
    $minute = (int)substr($raw_time, 14, 2);
    $second = (int)substr($raw_time, 17, 2);
    return time(TIME, mktime($hour, $minute, $second));

    }

    Then in the tpl_checkout_confirmation_default.php file I put
    <?php echo zen_time($order->info['order_delivery_time']); ?></h4><br />



    Now it IS working great for putting the time into the db. That page is the only place it shows up funky.
    I know someone out there can tell me what I'm doing wrong.

  2. #2
    Join Date
    May 2005
    Location
    Rockwood, Tennessee, United States
    Posts
    97
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Does anyone know how to put this on the product_info page?

    What about adding a time feature, like mentioned in the above reply?

  3. #3

    Default Re: Order Delivery Date Support Thread

    I need to add delivery time to this mod too. Can you advise how this is done?

    Thanks in advance

    Colin


    Quote Originally Posted by cjmarley View Post
    I have used this module for a pick-up date and time.

    I've managed to get a time field and it does work...except I'm having an issue with the display of the time on the checkout confirmation page. it's showing up as this:
    Desired Pick-up Date
    Thursday 16 August, 20121345146906

    I created a function for the time as such:


    function zen_time($raw_time) {
    if ( ($raw_time == '00:00:00') || ($raw_time == '') ) return false;

    $hour = substr($raw_time, 11, 2);
    $minute = (int)substr($raw_time, 14, 2);
    $second = (int)substr($raw_time, 17, 2);
    return time(TIME, mktime($hour, $minute, $second));

    }

    Then in the tpl_checkout_confirmation_default.php file I put
    <?php echo zen_time($order->info['order_delivery_time']); ?></h4><br />



    Now it IS working great for putting the time into the db. That page is the only place it shows up funky.
    I know someone out there can tell me what I'm doing wrong.

 

 

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