Allows to override the store shipping parameters.
The event handler should accept a single argument - the shipping parameters object loaded from the database.
To override the parameters the method should return the updated object. Note that the updated parameters will
be used in all subsequent calls. If you want the original parameters to be unchanged you may want to clone the
shipping parameters object inside the handler and return the updated clone.
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onGetShippingParams', $this, 'get_shipping_params');
}
public function get_shipping_params($params)
{
$result = clone $params;
$result->sender_first_name = 'John';
return $result;
}