How To Add Script

Hello,

I need to add a script to header of vendors backend admin area. How and where I can do this, please?

Regards

There are no hooks in the header of admin panel

design/backend/templates/index.tpl

Try to add your script here with the condition

{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
    ... your script here...
{/if}

There are no hooks in the header of admin panel

design/backend/templates/index.tpl

Try to add your script here with the condition

{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
    ... your script here...
{/if}

Hmm...going to error 500 admin login page.

Try

{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
{literal}
    ... your script here...
{/literal}
{/if}

Try

{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
{literal}
    ... your script here...
{/literal}
{/if}

Thank you. It works.