backend_products

Adds custom content to “Products” section in backend.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_products.%plugin_id%.sidebar_top_li}

Custom content; e.g., a link, at the top of the left-hand sidebar.

{$backend_products.%plugin_id%.sidebar_section}

Custom content at the middle of the left-hand sidebar.

{$backend_products.%plugin_id%.toolbar_export_li}

Custom content; e.g., a link, in "Export" section of the right-hand sidebar.

{$backend_products.%plugin_id%.toolbar_organize_li}

Custom content; e.g., a link, in "Organize" section in right-hand sidebar.

{$backend_products.%plugin_id%.toolbar_section}

Custom content at the bottom of right-hand sidebar.

{$backend_products.%plugin_id%.title_suffix}

Custom content on the right of main title at the top of "Products" section.

{$backend_products.%plugin_id%.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 array(
        'images'  => '<script src="'.$this->getPluginStaticUrl().'js/product-edit-images.js"></script>',
        'related' => '<script src="'.$this->getPluginStaticUrl().'js/product-edit-related.js"></script>',
    );
}