departure_datetime.before
Triggered before calculation of order shipping ready time, allows to modify online store’s working schedule used for the calculation.
Shop-Script
Input (passed by reference)
$params array Parameters.
$params['hash'] string Identifier of route from configuration file routing.php.
$params['storefront'] string Storefront address without trailing * character.
$params['schedule'] array Storefront working schedule returned by wa('shop')->getConfig()->getSchedule() method.
$params['hash'] string Identifier of route from configuration file routing.php.
$params['storefront'] string Storefront address without trailing * character.
$params['schedule'] array Storefront working schedule returned by wa('shop')->getConfig()->getSchedule() method.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function departureDatetimeBefore($params) { shopMyPluginHelper::updateStorefrontSchedule($params); }