backend_product_edit

Adds custom content to product-editing page in backend.

Shop-Script

Input (passed by reference)

$product shopProduct Product data.
… your plugin code …

Output

{$backend_product_edit.%plugin_id%.images}

Custom HTML code added before image list in product-editing section "Images".

{$backend_product_edit.%plugin_id%.related}

Custom HTML code added at the bottom of product-editing section "Related products".

{$backend_product_edit.%plugin_id%.basics}

Extra content to be displayed under “Basics” tab above product SKUs editing block.

{$backend_product_edit.%plugin_id%.image_toolbar_badge_li}

HTML code of custom <li> element of the product image badge list.

{$backend_product_edit.%plugin_id%.image_toolbar_edit_li}

HTML code of custom <li> element of the product image processing tool list.

{$backend_product_edit.%plugin_id%.image_toolbar_section}

Extra block at the bottom of the product image viewing screen.

Shop-Script

Plugin code example

PHP

public function backendProductEdit($product)
{
    return array(
        'images'  => '...',
        'related' => '...',
        'basics' => '...',
        'image_toolbar_badge_li' => '<li>...</li>',
        'image_toolbar_edit_li' => '<li>...</li>',
        'image_toolbar_section' => '...',
    );
}