• Resolved nostile

    (@nostile)


    Hello there,

    Now that your plugin has a cut-off time for orders to be placed by to be delivered within the estimated window, I think it only lacks a specification for processing days.

    In my case, Deliveries are done Monday to Saturday

    However, Orders are processed Sunday to Friday.

    Currently, delivery days are considered as processing days which causes an additional day added. If an Order is being placed on Saturday with a 1-2 day window, the estimate will show as Tuesday – Wednesday because the next Delivery day is Monday which is when the system will expect the order to be processed.

    In reality however the order will be processed on Sunday and be out for delivery on Monday – Tuesday.

    Can you implement processing days and cut-off times to work with each other? Probably a simple checkbox to select the days on which orders are processed for the shipping method.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author RLDD

    (@rermis)

    Hi there,
    This will probably be a fix using the custom function due to it’s complexity to integrate into the interface. I will see if this can be done and get back to you.
    Thank you!

    Plugin Author RLDD

    (@rermis)

    The following function pasted in your theme’s functions.php file or in the plugin’s functions.php file will subtract one day from the delivery estimate if an order is placed on Sat or Sun. The date function uses 1 for Monday, 7 for Sunday, so it is configurable according to your business rules.

    function wse_adjust_days($method,$days,$type) {
      $ship_days=0;
      $now=strtotime(current_time('mysql'));
      if(date('N',$now)>=6) $ship_days=-1; // Subtract one day if Sat/Sun
      return $ship_days;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request: Processing Days’ is closed to new replies.