backend_prod_categories

Adds custom content to the “Products → Categories” section in the new interface (2.0).

Shop-Script

Input (passed by reference)

$params['categories']: Array of data of the categories displayed in the store backend. Can be modified by plugins.
$params['storefronts']: Array of data of the storefronts displayed in the store backend, which contains their absolute URLs without the protocol part and human-readable URLs converted from the Punycode format. Can be modified by plugins.
… your plugin code …

Output

{$backend_prod_categories.header_left}
Custom content at the page top to the right of the “New category” button.
{$backend_prod_categories.header_right}
Custom content at the page top to the left of the categories sorting warning message.
Shop-Script

Plugin code example

PHP

public function backendProdCategories(&$params)
{
    // you can modify the $categories array to change the way categories are displayed
    $categories = &$params['categories'];

    // you can modify the $storefronts array to change the way storefronts are displayed
    $storefronts = &$params['storefronts'];

    return [
        'header_left' => '<!-- link or button to the right of the "New category" button -->',
        'header_right' => '<!-- link or button to the left of the warning message -->',
    ];
}