Jump to content

Add an shortcut icon menu inside the header

Recommended Posts




Just a weird question.

On the right, you have diffrent short icon. It is possible to add another. I waat to create a new shortcut icon to go in review.


Thank you.

Edited by Rantanplan
Link to post
  • Rantanplan changed the title to Add an shortcut icon menu inside the header



Yes, you can. You must create a hook in ibnside the reviews apps.


Lootk this code : SItes/ClicShoppingAdmin ... Dashboard .... main.php

<?php echo $CLICSHOPPING_Hooks->output('DashboardShortCut', 'DashboardShortCut', null, 'display'); ?>

Now look inside product you will see in Hooks directory a files called DashboardShortCut

Reply the process inside Module/ClicShoppingAdmin/DashboardShortCut or inside the aps reviews.


I do not explain all because I think you must look to understand the application but you have all the process.


good code :)




Link to post

Hello @Rantanplan,


little late but there an example. You can find this code the apps category

You can create another if you add information inside the json or you can add inside the includes/Modules directories. Goofd luck


   * @copyright 2008 - https://www.clicshopping.org
   * @Brand : ClicShopping(Tm) at Inpi all right Reserved
   * @Licence GPL 2 & MIT
   * @licence MIT - Portion of osCommerce 2.4
   * @Info : https://www.clicshopping.org/forum/trademark/

  namespace ClicShopping\Apps\Catalog\Categories\Module\Hooks\ClicShoppingAdmin\DashboardShortCut;

  use ClicShopping\OM\Registry;
  use ClicShopping\OM\HTML;
  use ClicShopping\OM\CLICSHOPPING;

  use ClicShopping\Apps\Catalog\Categories\Categories as categoriesApp;

  class DashboardShortCutCategories implements \ClicShopping\OM\Modules\HooksInterface
    protected $app;

    public function __construct()
      if (!Registry::exists('Categories')) {
        Registry::set('Categories', new categoriesApp());

      $this->app = Registry::get('Categories');


    public function display(): string
        return false;

      $output = HTML::link(CLICSHOPPING::link(null, 'A&Catalog\Categories&Categories'), null, 'class="btn btn-primary btn-sm" role="button"><span class="fas fa-list" title="' . $this->app->getDef('heading_short_categories') . '"') . ' ';

      return $output;


  • Like 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use