Filters

FilterUse
yds_method_type($type, $rate_id) Change whether a shipping rate asks for "delivery", "collection" or "none".
yds_is_closed($closed, $date) Close extra dates, e.g. from your own holiday list.
yds_prep_days($days, $product_ids) Change the preparation days for a cart or order.
yds_cart_context($context) Change the type, zone or preparation days worked out for the cart.

Actions

ActionWhen
yds_time_changed($order) Staff changed an order's time.
yds_overbooked($order) A late payment kept a time that had filled up.
yds_reservation_failed($order, $error) A paid order's time could not be saved, so it holds no place. Fires once, when the order is first flagged.

Order Meta

The chosen time is saved on the order as _yds_type, _yds_date (Y-m-d), _yds_slot, _yds_start and _yds_end (Unix timestamps), _yds_zone, _yds_fee and _yds_label. Reservations are kept in the {prefix}yds_reservations table, one row per order (a unique key on order_id). A paid order whose time could not be saved has _yds_unsaved (the time of its next automatic retry).