order_action_form.restore
Adds custom content to “Restore” order action form in backend.
Shop-Script
Input (passed by reference)
$params array Order action data.
$params['order_id'] int Order ID.
$params['action_id'] string Action ID.
$params['order_id'] int Order ID.
$params['action_id'] string Action ID.
… your plugin code …
Output
$return
Custom content to be added to action execution form.
Shop-Script
Plugin code example
PHP
public function orderActionForm($params)
{
// When processing event 'order_action_form.restore' or 'order_action_form.*',
// generate a custom field for the comment-adding form.
return waHtmlControl::getControl(waHtmlControl::INPUT, 'plugins[' . $this->id . '][some]');
}
public function orderAction($params)
{
// When processing event 'order_action.restore' or 'order_action.*',
// use the value submitted by a user in the custom field.
$post = waRequest::post('plugins');
waLog::dump($post[$this->id]['some'], 'shop/plugins/' . $this->id . '/order-action.log');
}









