backend_prod_sets

Adds custom content to the “Catalog → Sets” section in the Webasyst 2 interface.

Shop-Script

Input (passed by reference)

$params['data']: Array of data of the sets and folders displayed in the store backend, which you can modify in your plugin’s code; e.g., hide or modify certain items.
… your plugin code …

Output

{$backend_prod_sets.header_left}
Custom content at the page top to the right of the “New set” button.
{$backend_prod_sets.header_right}
Custom content at the page top to the left of the sorting link.
Shop-Script

Plugin code example

PHP

public function backendProdSets(&$params)
{
    $groups_and_sets = &$params['data'];
    // you can modify the $groups_and_sets array to change the way groups & sets are displayed

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