How To Hide Categories On Vendors Dashboard?

Hello,

How to hide info about categories on vendors dashboard?

Regards

vendor-dashboard.png

design/backend/templates/views/index/index.tpl

remove the following code and clear cache

        {if !empty($general_stats.categories)}
            
{__("categories")}
{/if}

If you are familiar with hooks, you can use index:index hook in this file

design/backend/templates/views/index/index.tpl

remove the following code and clear cache

        {if !empty($general_stats.categories)}
            
        {/if}

If you are familiar with hooks, you can use index:index hook in this file

But is it possible to remove only from vendor's dashboard and leave on admin's?

Regards

Sure, you can use the following code

        {if !empty($general_stats.categories) && $smarty.const.ACCOUNT_TYPE != 'vendor'}
            
{__("categories")}
{/if}

Sure, you can use the following code

        {if !empty($general_stats.categories) && $smarty.const.ACCOUNT_TYPE != 'vendor'}
            
        {/if}

Hello,

Is this still work? I cannot find such code in your provided directory or I am blind. :)

UPDATE: I found the code in dashboard.tpl but seems is now out of hook. Am I right?

Could you advise please?

Regards

Please find it in

design/backend/templates/views/index/components/dashboard.tpl

Please find it in

design/backend/templates/views/index/components/dashboard.tpl

Just to make sure: now I cannot use hook? Right?

Thank you

Just to make sure: now I cannot use hook? Right?

Thank you

Use can only use the index:index hook to override the whole block with statistics