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

Hybrid View

  1. #1
    Join Date
    Dec 2016
    Location
    Edmonton
    Posts
    25
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Hello anyone :-)

    Before I download this mod, can anyone tell me if the timeslot selector has been added to this delivery date mod? My searching through the thread has been inconclusive, though many people have brought such request up over the years. For home delivery I require a mod that allows customers to select the date as well as a 1 hour time slot for such date. Design75 has been working on one early this year, but I am not sure if the project has been abandoned, as I have been getting "dead air" on the progress for about a couple of months, and I really need to have this functionality on my start-up site.

    Much appreciated. :-)

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by jkenwell View Post
    Hello anyone :-)

    Before I download this mod, can anyone tell me if the timeslot selector has been added to this delivery date mod? My searching through the thread has been inconclusive, though many people have brought such request up over the years. For home delivery I require a mod that allows customers to select the date as well as a 1 hour time slot for such date. Design75 has been working on one early this year, but I am not sure if the project has been abandoned, as I have been getting "dead air" on the progress for about a couple of months, and I really need to have this functionality on my start-up site.

    Much appreciated. :-)
    This mod as recently updated still only has a date identifier associated with it. No time has been directly incorporated think I remember seeing some options that could be set to support time, but please don't quote me on that. My goal at the time of update was simply to maintain operability in more recent versions of ZC.

    I would recommend though that you download the software and on your development site (duplicate of your current site) take a look at what it can do and maybe see if it is possible to incorporate a time field.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3

    Default Re: Order Delivery Date Support Thread

    Thank you very much.
    I am using 1.5.5 and 2.5.1.
    If you set the direction to 5 and you want to allow Saturdays and Sundays for breaks to be blocked, I would like to be able to select days after Saturday and Sunday, is it possible to deal with it?
    Example: today is 2017/8/10
    Direction: 5
    Blocked: '0 * * 0, 6'
    Delivery possible date is 8/17.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by kimono View Post
    Thank you very much.
    I am using 1.5.5 and 2.5.1.
    If you set the direction to 5 and you want to allow Saturdays and Sundays for breaks to be blocked, I would like to be able to select days after Saturday and Sunday, is it possible to deal with it?
    Example: today is 2017/8/10
    Direction: 5
    Blocked: '0 * * 0, 6'
    Delivery possible date is 8/17.
    It is possible to prevent delivery selection of saturday and sunday by the above blocked statement; however, Direction is a number representing how many calendar days forward of today to allow the next delivery. Basically in your case, if today is Saturday, Sunday, early Monday or late Friday then the direction is 5, otherwise 7.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by mc12345678 View Post
    It is possible to prevent delivery selection of saturday and sunday by the above blocked statement; however, Direction is a number representing how many calendar days forward of today to allow the next delivery. Basically in your case, if today is Saturday, Sunday, early Monday or late Friday then the direction is 5, otherwise 7.
    Thank you very much.
    I am sorry that the reply was delayed.
    Is there a way to judge direction is 5, otherwise 7?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by kimono View Post
    Thank you very much.
    I am sorry that the reply was delayed.
    Is there a way to judge direction is 5, otherwise 7?
    More research is needed, but in the basic sense, additional javascript code can be used to provide a result of 5 or 7 depending on the result of the javascript method: getDay()

    Code:
     todayDate = new Date();
    curDay = todayDate.getDay();
    Direction : (curDay == 0 || curDay == 1 || curDay == 5 || curDay == 6) ? 5 : 7);
    The problem with the above is that it uses 5 for any time during Monday and Friday, not just after some cut-off time. Further, the function responds based on the date/time of the user not the store. So in the extreme case of a store being on one side of the date line, a customer on the other side may be offered a delivery time period outside of the expected/allowed time frame or may be provided a date that is sooner than possible. Additional date/time comparison would be needed to say make the comparisons on the left more "realistic" to your business if you deal with people outside of your central location. If they are local, then say where curDay == 1 && curTime < Mondays_cut_off_time would be what is needed, though would have to also identify/determine what Mondays_cut_off_time would be. The same would be needed for Friday but a little in reverse: curDay == 5 && curTime >= Fridays_cut_off_time. Oh, also would need to set/determine curTime... again more research would be needed on my side or as someone else offers up.

    Also, if additional "tests" are added as described, things like curDay == 1 && curTime < Mondays_cut_off_time would need to be surrounded by parentheses. So that the two pieces would be treated as one test.
    Last edited by mc12345678; 22 Aug 2017 at 02:53 AM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by mc12345678 View Post
    More research is needed, but in the basic sense, additional javascript code can be used to provide a result of 5 or 7 depending on the result of the javascript method: getDay()

    Code:
     todayDate = new Date();
    curDay = todayDate.getDay();
    Direction : (curDay == 0 || curDay == 1 || curDay == 5 || curDay == 6) ? 5 : 7);
    The problem with the above is that it uses 5 for any time during Monday and Friday, not just after some cut-off time. Further, the function responds based on the date/time of the user not the store. So in the extreme case of a store being on one side of the date line, a customer on the other side may be offered a delivery time period outside of the expected/allowed time frame or may be provided a date that is sooner than possible. Additional date/time comparison would be needed to say make the comparisons on the left more "realistic" to your business if you deal with people outside of your central location. If they are local, then say where curDay == 1 && curTime < Mondays_cut_off_time would be what is needed, though would have to also identify/determine what Mondays_cut_off_time would be. The same would be needed for Friday but a little in reverse: curDay == 5 && curTime >= Fridays_cut_off_time. Oh, also would need to set/determine curTime... again more research would be needed on my side or as someone else offers up.

    Also, if additional "tests" are added as described, things like curDay == 1 && curTime < Mondays_cut_off_time would need to be surrounded by parentheses. So that the two pieces would be treated as one test.
    Thank you very much for your prompt response.
    It seems that response other than holidays on Saturdays and Sundays alone seems to be difficult only with the above answers.

  8. #8

    Default Re: Order Delivery Date Support Thread

    Also, it is fine if only Saturday and Sunday, but it seems to be unable to deal with holidays and other holidays.

  9. #9
    Join Date
    Apr 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    2.51/1.55 - The delivery date is showing up everywhere except on the admin confirmation email. Can you tell me which file generates this information so I can update it?

  10. #10
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by saftek View Post
    2.51/1.55 - The delivery date is showing up everywhere except on the admin confirmation email. Can you tell me which file generates this information so I can update it?
    You say the admin confirmation email doesn't have it, so does that mean the customer's version does?

    The contents of the email are generated in includes/classes/orders.php in the function send_order_email.

    If you are sending html style messages then the applicable /email/ template needs to be updated to present/send the added information. I'm sure there's a FAQ about it, though it's not too complicated if you look at one of the files and compare it's contents with the contents of the above function. Sugest looking at email_template_checkout.html for the order confirmation content.

    The admin email generally should look just like the customer's email but have some additional information related to the customer's visit.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
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