backend_products

Adds custom content in the “Products” section in the old interface (1.3).

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_products.sidebar_top_li}
Custom content; e.g., a link, at the top of the left-hand sidebar.
{$backend_products.sidebar_section}
Custom content at the middle of the left-hand sidebar.
{$backend_products.toolbar_export_li}
Custom content; e.g., a link, in "Export" section of the right-hand sidebar.
{$backend_products.toolbar_organize_li}
Custom content; e.g., a link, in "Organize" section in right-hand sidebar.
{$backend_products.toolbar_section}
Custom content at the bottom of right-hand sidebar.
{$backend_products.title_suffix}
Custom content on the right of main title at the top of "Products" section.
{$backend_products.viewmode_li}
Custom content; e.g., an icon link, in the list of available icons used for switching between product listing viewing modes.
Shop-Script

Plugin code example

PHP

public function backendProducts()
{
    return [
        'images'  => '<script src="' . $this->getPluginStaticUrl() . 'js/product-edit-images.js"></script>',
        'related' => '<script src="' . $this->getPluginStaticUrl() . 'js/product-edit-related.js"></script>',
    ];
}