departure_datetime.after

Triggered upon calculation of order shipping ready time, allows to modify calculated time.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['this'] shopDepartureDateTimeFacade Instance of class used to calculate order shipping ready time.
$params['timezone'] string Identifier of timezone selected in storefront working schedule settings.
$params['timestamp'] int Timestamp corresponding to calculated order shipping ready time.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function departureDatetimeAfter($params)
{
    shopMyPluginHelper::updateDepartureDatetime($params);
}