Hello,
How to hide info about categories on vendors dashboard?
Regards
design/backend/templates/views/index/index.tpl
remove the following code and clear cache
{if !empty($general_stats.categories)}{/if}{__("categories")}
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}{__("categories")}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'}{/if}{__("categories")}
Sure, you can use the following code
{if !empty($general_stats.categories) && $smarty.const.ACCOUNT_TYPE != 'vendor'}{/if}{__("categories")}
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