Outils pour utilisateurs

Outils du site


informatique:prestashop:prestashop_1.7_supprimer_le_bouton_demo

Prestashop 1.7 Supprimer Le Bouton Demo

Date de création : 2020/12/23 15:55

 

Cette page a pour source partielle ou intégrale la ou les page(s) suivante(s):

dans le template .tlp:

/controllers/admin/AdminDashboardController.php

vers la ligne 57:

    public function initPageHeaderToolbar()
    {
        $this->page_header_toolbar_title = $this->trans('Dashboard', array(), 'Admin.Dashboard.Feature');
        // Commenter tout le bloc pour enlever le bouton
        // $this->page_header_toolbar_btn['switch_demo'] = array(
        //     'desc' => $this->trans('Demo mode', array(), 'Admin.Dashboard.Feature'),
        //     'icon' => 'process-icon-toggle-' . (Configuration::get('PS_DASHBOARD_SIMULATION') ? 'on' : 'off'),
        //     'help' => $this->trans('This mode displays sample data so you can try your dashboard without real numbers.', array(), 'Admin.Dashboard.Help'),
        // );

        parent::initPageHeaderToolbar();

        // Remove the last element on this controller to match the title with the rule of the others
        array_pop($this->meta_title);
    }

Page dans la catégorie:

informatique/prestashop/prestashop_1.7_supprimer_le_bouton_demo.txt · Dernière modification : 2022/04/10 17:26 de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki