Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/25/19 in all areas

  1. 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
    1 point
×
×
  • Create New...

Important Information

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