backend_category_dialog

Adds extra content to product category editing dialog.

Shop-Script

Input (passed by reference)

$category array Product category data.
… your plugin code …

Output

{$backend_category_dialog.%plugin_id%}

Custom content; e.g., settings elements, displayed under category name editing field.

Shop-Script

Plugin code example

PHP

public function backendCategoryDialog($category)
{
    return waHtmlControl::getControl(waHtmlControl::INPUT, 'myplugin_field', array(
        'value' => ifset($category['myplugin_field']),
        'title' => _wp('My plugin'),
        'description' => _wp('Some hints for users.'),
        'title_wrapper' => '%s',
        'control_wrapper' => '<div class="field"><div class="name">%s</div><div class="value no-shift">%s%s</div></div>',
        'description_wrapper' => '<br><span class="hint">%s</span>',
    ));
}