Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2011
    Posts
    78
    Plugin Contributions
    0

    Default Display shipping module based on time

    1.57c php, PHP 7.4.30
    Is it possible to have shipping modules automatically switch on and off/hidden based on the time/day?
    UK Special Delivery weekday only delivery - it's a cloned zones module.
    I'd like it to only display from Sunday until Thursday at 1pm.
    Currently I'm manually enabling/disabling and sometimes forget.

    I am aware that the Big Royal Mail module has this built in but as my current shipping options are all set how I want them don't particularly want to switch over.

    Thanks.

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

    Default Re: Display shipping module based on time

    Have to know/ understand what you are going to use as a time zone basis. I mean it is obvious that it relates to your local time but, I'm referring to what time your system thinks it is.

    There are also some other considerations, like how strict is the time you are choosing? Is it they have to have finalized the purchase by that point? That they got past the shipping page by that point? Somewhere in between?

    What about the turn on point? If they begin checkout and as they are about to confirm the order and the option begins available, do they get redirected back to shipping? Is it made available a few minutes before the allowed time but checkout is prevented until the allowed time?

    Etc...

    The idea I perceive would be to incorporate the test criteria in the__construct method that if the time falls outside the desired time then disable the method.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Apr 2009
    Posts
    417
    Plugin Contributions
    2

    Default Re: Display shipping module based on time

    Have a look at bigroyalmail rmspecialdeliverysat I did something like that, you can find it on github. It will need sone changed for php8.2 which I am currently coding.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  4. #4
    Join Date
    Mar 2011
    Posts
    78
    Plugin Contributions
    0

    Default Re: Display shipping module based on time

    Quote Originally Posted by mc12345678 View Post
    Have to know/ understand what you are going to use as a time zone basis. I mean it is obvious that it relates to your local time but, I'm referring to what time your system thinks it is.

    There are also some other considerations, like how strict is the time you are choosing? Is it they have to have finalized the purchase by that point? That they got past the shipping page by that point? Somewhere in between?

    What about the turn on point? If they begin checkout and as they are about to confirm the order and the option begins available, do they get redirected back to shipping? Is it made available a few minutes before the allowed time but checkout is prevented until the allowed time?

    Etc...

    The idea I perceive would be to incorporate the test criteria in the__construct method that if the time falls outside the desired time then disable the method.
    My server time synchs with the local time, according to Server/version info in Admin.
    Regarding how strict, currently if the selected shipping method is switched off during checkout, as long as it's past the shipping screen it is still used for the sale. I see no reason to change that.
    No redirect if it activates during checkout process.
    Cheers.

  5. #5
    Join Date
    Mar 2011
    Posts
    78
    Plugin Contributions
    0

    Default Re: Display shipping module based on time

    Quote Originally Posted by brittainmark View Post
    Have a look at bigroyalmail rmspecialdeliverysat I did something like that, you can find it on github. It will need sone changed for php8.2 which I am currently coding.
    I've seen that but I'm just not au fait enough with coding to be able to adapt it.

 

 

Similar Threads

  1. v150 Display one payment option based on shipping
    By coopco in forum General Questions
    Replies: 9
    Last Post: 28 Jun 2013, 02:43 AM
  2. Display shipping times based on Attibutes or Prices?
    By zerocool9455 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 16 May 2010, 03:49 AM
  3. Replies: 22
    Last Post: 12 Apr 2010, 04:45 PM
  4. MZMT shipping module - Display Shipping Options based on Weight
    By DogTags in forum Addon Shipping Modules
    Replies: 2
    Last Post: 27 Feb 2007, 04:26 AM
  5. Time-based shipping...
    By Alex Clarke in forum General Questions
    Replies: 1
    Last Post: 21 Oct 2006, 03:02 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR