Jump to content

(Module Gratuit) Multi Level Push Menu


Recommended Posts

Bonjour.

 

Pour passer le module en 1.6

 

Dans le fichier mlpushmenu.php (ligne 47)

$this->ps_versions_compliancy = array('min' => '1.6.0.0', 'max' => _PS_VERSION_);

Dans la BDD

INSERT INTO `ps16_hook` (
`id_hook` ,
`name` ,
`title` ,
`description` ,
`position` ,
`live_edit`
)
VALUES (
NULL ,  'displayAfterBodyOpeningTag',  'Very top of pages',  'Use this hook for advertisement or modals you want to load first.',  '1',  '1'
);

INSERT INTO `ps16_hook` (
`id_hook` ,
`name` ,
`title` ,
`description` ,
`position` ,
`live_edit`
)
VALUES (
NULL ,  'displayBeforeBodyClosingTag',  'Very bottom of pages',  'Use this hook for your modals or any content you want to load at the very end.',  '1',  '1'
);

Dans le fichier header.tpl de ton thème (juste au dessous de la balise body)

{hook h='displayAfterBodyOpeningTag'}

Dans le fichier Footer.tpl de ton thème (juste au dessus de la balise body)

{hook h='displayBeforeBodyClosingTag'}

Créer un fichier FrontController.php dans (override\classes\controller)

<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

class FrontController extends FrontControllerCore
{
    
    /**
     * Initializes common front page content: header, footer and side columns
     */
    public function initContent()
    {
        $this->process();

        if (!isset($this->context->cart)) {
            $this->context->cart = new Cart();
        }

        if (!$this->useMobileTheme()) {
            // These hooks aren't used for the mobile theme.
            // Needed hooks are called in the tpl files.
            $this->context->smarty->assign(array(
                'HOOK_HEADER'       => Hook::exec('displayHeader'),
                'HOOK_TOP'          => Hook::exec('displayTop'),
                'HOOK_BeforeBodyClosingTag'          => Hook::exec('hookdisplayBeforeBodyClosingTag'),
                'HOOK_AfterBodyOpeningTag'          => Hook::exec('hookdisplayAfterBodyOpeningTag'),
                'HOOK_LEFT_COLUMN'  => ($this->display_column_left  ? Hook::exec('displayLeftColumn') : ''),
                'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
            ));
        } else {
            $this->context->smarty->assign('HOOK_MOBILE_HEADER', Hook::exec('displayMobileHeader'));
        }
    }

	

}

Et big ça fonctionne ;)

 

Bon dev

Edited by AngelDisc (see edit history)
  • Like 1
Link to comment
Share on other sites

Bonjour.

 

Pour passer le module en 1.6

 

Dans le fichier mlpushmenu.php (ligne 47)

$this->ps_versions_compliancy = array('min' => '1.6.0.0', 'max' => _PS_VERSION_);

Dans la BDD

INSERT INTO `ps16_hook` (
`id_hook` ,
`name` ,
`title` ,
`description` ,
`position` ,
`live_edit`
)
VALUES (
NULL ,  'displayAfterBodyOpeningTag',  'Very top of pages',  'Use this hook for advertisement or modals you want to load first.',  '1',  '1'
);

INSERT INTO `ps16_hook` (
`id_hook` ,
`name` ,
`title` ,
`description` ,
`position` ,
`live_edit`
)
VALUES (
NULL ,  'displayBeforeBodyClosingTag',  'Very bottom of pages',  'Use this hook for your modals or any content you want to load at the very end.',  '1',  '1'
);

Dans le fichier header.tpl de ton thème (juste au dessous de la balise body)

{hook h='displayAfterBodyOpeningTag'}

Dans le fichier Footer.tpl de ton thème (juste au dessus de la balise body)

{hook h='displayBeforeBodyClosingTag'}

Créer un fichier FrontController.php dans (override\classes\controller)

<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

class FrontController extends FrontControllerCore
{
    
    /**
     * Initializes common front page content: header, footer and side columns
     */
    public function initContent()
    {
        $this->process();

        if (!isset($this->context->cart)) {
            $this->context->cart = new Cart();
        }

        if (!$this->useMobileTheme()) {
            // These hooks aren't used for the mobile theme.
            // Needed hooks are called in the tpl files.
            $this->context->smarty->assign(array(
                'HOOK_HEADER'       => Hook::exec('displayHeader'),
                'HOOK_TOP'          => Hook::exec('displayTop'),
                'HOOK_BeforeBodyClosingTag'          => Hook::exec('hookdisplayBeforeBodyClosingTag'),
                'HOOK_AfterBodyOpeningTag'          => Hook::exec('hookdisplayAfterBodyOpeningTag'),
                'HOOK_LEFT_COLUMN'  => ($this->display_column_left  ? Hook::exec('displayLeftColumn') : ''),
                'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
            ));
        } else {
            $this->context->smarty->assign('HOOK_MOBILE_HEADER', Hook::exec('displayMobileHeader'));
        }
    }

	

}

Et big ça fonctionne ;)

 

Bon dev

 Bonjour http://www.angeldisc.com  :) C'est Sympa de ta part , justement j'etais dessus , Merci pour ce partage

 

Merci Ca fonctionne... 

 

Edited by Soyons zen (see edit history)
Link to comment
Share on other sites

Bonjour.

 

Voici un petit module pour afficher votre menu verticalement et en multi level.

 

Compatible : 1.7.x.x

Traductions : FR

 

menu.png

 

Vous pouvez voir le module en fonctionnement sur http://www.angeldisc.com/ et aussi télécharger la dernière version.

Thanks for the contribution!
 
I have linked your module in the Hispanic section of free modules: https://www.prestashop.com/forums/topic/601420-m%C3%B3dulo-flotante-de-categor%C3%ADas-para-prestashop-17/ (Leaving the download link original to the Frances forum)
 
I have done a review in Spanish in my old blog of its module for the Spanish Community: http://victor-rodenas.com/2017/03/23/menu-vertical-de-categorias-multinivel-para-prestashop-1-7/
 
Long live the Prestashop Community !
 
Thanks !
 
Sorry for my English !
Link to comment
Share on other sites

Thanks you for the module!

 

 

I'm using it in Ps 1.7 with default template (classic).   

 

Is it possible to enable the scroller?  I have categories that can not be seen.

 

When I enabled this module and I enlarge the image of a product, there is no way to go back. The popup image does not disappear.  I have to use F5 to disappear the enlarged image.

 

 

Best regards

Edited by jhd (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Un gran modulo menú. Lastima que falle a la visualización de imagenes de producto que no te deja cerrar la foto. Y tampoco permite scroll si tienes muchas subcategorias. Una pena, pues es justo lo que buscaba.

 

A good menu module. It doesn´t work with preview products photos, because can´t close the photo. Scroll is not supported in menu, and if you hava many subcategories doesn´t click. í´m afraid.

  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...
  • 1 month later...
  • 6 months later...
  • 10 months later...

Bonjour,
Tout d'abord un grand merci pour mettre à disposition votre module Prestashop.
Je tente de créer un site pour mon commerce avec les maigres connaissances dont je dispose.
J'ai installé le module dans Prestashop 1.6.1.24 avec les modifications recommandées et tout fonctionne parfaitement.
En modifiant la var overlapWidth:0; dans mlpushmenu.js, on peut masquer complètement le menu quand on le referme.

Avez-vous une idée pour implanter un bouton sur la page qui permettrait de le réouvrir ?

Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...