order_action_form.pay

Adds custom content to “Paid” 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.
… your plugin code …

Output

%plugin_id%

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.pay or order_action_form.*
    //generate a custom field for action execution form
    return waHtmlControl::getControl(waHtmlControl::INPUT, 'plugins[test][some]');
}

public function orderAction($params)
{
    //when processing event order_action.pay or order_action.*
    //use the value submitted by a user in the custom field
    $post = waRequest::post('plugins');
    waLog::dump($post['test']['some']);
}