Adds extra content to transfer-creating dialog in backend’s “Products → Stock” section.


Input (passed by reference)

$params array Parameters.
$params['from'] int ID of stock selected as tansfer source.
$params['to'] int ID of stock selected as tansfer destination.
$params['skus'] array SKUs which are by default displayed in the transfer-adding dialog; this occurs when one stocks is dragged upon another in the SKU list under “Stock balance” tab. When a transfer is added via the “New transfer” link, the SKU list is empty by default.
$params['stocks'] array Online store’s stocks. Array keys are stock IDs.
$params['string_id'] string ID of transfer generated from the current date and the next number counted for the current date.
… your plugin code …


Extra HTML content added at the bottom of the transfer-adding dialog.

Plugin code example


public function backendStocksTransfer($params)
    return array(
        'transfer' => '<!-- custom HTML -->,',