Snoopy Posted February 21, 2019 Share (edited) Hello, Someone cold you explain me ow the dashboard works ? I see some informations appears after the first installation like status, statistics. Is possible to has some informations ? Thank you. Edited February 21, 2019 by Snoopy Quote Link to post
Julie Posted February 21, 2019 Share Hello, First, on you right, you have a dynamic statistic information, These elements appear in function on your website. Some elements can be included inside when you create a new app. Inside this directory, you can find some Hooks : Modules/Hooks/ClicShoppingAdmin/Dashboard I looked the code and all the file starts by this synthax IndexDahboardTop , will displayed information on the top on the dasboard. For example you want to display statistics, news ..., you have to create a file like that IndexDahboardTop.php Litle example : <?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\OM\Module\Hooks\ClicShoppingAdmin\Dashboard; use ClicShopping\OM\CLICSHOPPING; class IndexDahboardTopOrder { public function __construct() { if (CLICSHOPPING::getSite() != 'ClicShoppingAdmin') { CLICSHOPPING::redirect(); } } public function execute() { $test = '<span class="col-md-4 alert alert-danger">--------------</span>'; $test .= '<span class="col-md-4 alert alert-info">--------------</span>'; return $test; } } It displays 2 information elements in the dashboard top. Pu the files and it's done 2 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.