backend_stocks.transfer

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

Shop-Script

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 …

Output

{$backend_stocks.transfer.transfer}
Extra HTML content added at the bottom of the transfer-adding dialog.
Shop-Script

Plugin code example

PHP

public function backendStocksTransfer($params)
{
    return [
        'transfer' => '<!-- custom HTML -->,',
    ];
}