Jump to content

How works the Dashoard ?


Recommended Posts

(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 by Snoopy
Link to post

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 :)

  • Like 2
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.

Guest
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