Jump to content

Drack

Members
  • Posts

    175
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by Drack

  1. If I can add to the conversation, if you go on Amazon, it can be cool, but do you have the quantity to propose your product? 

    What I am saying, It's important to choose the good orientation, the good investment and test your market.

    In function of your result, you can adjust your goal.

  2. I think, it's better to have not more than your screen width. For example, il you have 10, you will have some statistics on 2 row. 
    It think it's better to focus on what is important for you.
    Inside the dashboard, you also have lot of statistics, it's not important to make the same inside the top dashboard.
     

  3. Yes it look nice.

     

    It enough easy to make another one : Take this file IndexDashboardTopStockWarning and rename it : IndexDashboardTopTest
    Change inside the class and the request

    The file will be like this !

    ........... must be removed and adapted at your needs.

    <?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;
      use ClicShopping\OM\Registry;
      use ClicShopping\OM\HTML;
    
      class IndexDashboardTopTest {
        protected $db;
    
        public function __construct() {
    
          if (CLICSHOPPING::getSite() != 'ClicShoppingAdmin') {
            CLICSHOPPING::redirect();
          }
    
          $this->db = Registry::get('Db');
        }
    
        public function execute() {
          $Qproducts = $this->db->prepare('select count(*) as count from :table_products
                                          where ..........
                                         ');
    
          $Qproducts->execute();
    
          $number_products_test = $Qproducts->valueInt('count');
    
          if ($number_products_test > 0) {
            $text = CLICSHOPPING::getDef('text_number_products_........');
            $text_view = CLICSHOPPING::getDef('text_view');
    
            $output = '
    <div style="padding-right:0.5rem; padding-top:0.5rem">
        <div class="card bg-warning">
          <div class="card-body">
            <div class="row">
              <h5 class="card-title text-white"><i class="fas fa-bell-slash"  aria-hidden="true"></i> ' . $text . '</h5>
            </div>
            <div class="col-md-12">
              <span h5 class="text-white">' . $number_products_test . '</span>
              <span><small class="text-white">' . HTML::link(CLICSHOPPING::link(null, 'A&...........'), $text_view, 'class="text-white"') . '</small></span>
            </div>
          </div>
        </div>
    </div>
    ';

     

    • Like 3
    • Thanks 3
  4. Thank you for this update.

    If I understand the function, it's possible to have different products length, but inside the shipping all is the same because it need an uniformisation. is it correct ?

    It's like the weight.

     

×
×
  • Create New...

Important Information

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