backend_marketing_sidebar
Allows adding custom content to the sidebar in the “Marketing” section.
Shop-Script
Input (passed by reference)
No specific parameters.
… your plugin code …
Output
{$backend_marketing_sidebar.promos_li}
Custom
<li> element in the list of promo filters.{$backend_marketing_sidebar.tools_li}
Custom
<li> element in the list of promo tools.{$backend_marketing_sidebar.settings_li}
Custom
<li> element in the list of settings sections. Used only in the old interface (1.3).{$backend_marketing_sidebar.bottom_li}
Custom
<li> element at the bottom of the sidebar. Used only in the old interface (1.3).{$backend_marketing_sidebar.custom_html}
Extra content at the bottom of the sidebar. E.g., an information block or a JavaScript code snippet.
Shop-Script
Plugin code example
PHP
public function backendMarketingSidebar()
{
return [
'promos_li' => '<li><a href="?plugin=' . $this->id . '&module=marketing&action=promos"><span class="s-name">' . _wp('Custom promo list') . '</span><span class="s-counter js-counter"></span></a></li>',
'tools_li' => '<li><span id="' . $this->id . '-tools-link" class="link"><i class="fas fa-cog"></i> <span class="s-name">' . _wp('Custom tools') . '</span></span></li>',
'custom_html' => '<div class="box custom-p-8">' . _wp('Custom info') . '</div>',
];
}









