Rantanplan Posted October 14, 2020 Share (edited) Hello, 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 October 14, 2020 by Rantanplan Quote Link to post
Foster Posted October 14, 2020 Share Hello, 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 Regards Forster Quote Link to post
Rantanplan Posted October 14, 2020 Author Share I will take time to look and understand the approach, Thank you. Quote Link to post
Rantanplan Posted October 25, 2020 Author Share I am looking a little if I understand well, if I include a new dashboard inside the app, I must change the json ? Quote Link to post
ClicShopping Posted November 26, 2020 Share 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 <?php /** * * @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'); $this->app->loadDefinitions('Module/Hooks/ClicShoppingAdmin/DashboardShortCut/dashboard_shortcut_categories'); } public function display(): string { if (!defined('CLICSHOPPING_APP_CATEGORIES_CT_STATUS') || CLICSHOPPING_APP_CATEGORIES_CT_STATUS == 'False') { 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; } } 1 Quote Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.