backend_category_dialog
Adds extra content to product category editing dialog in the old interface (1.3).
Shop-Script
Input (passed by reference)
$category array Product category data.
… your plugin code …
Output
{$backend_category_dialog}
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, $this->id . '_field', [
'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>',
]);
}









