Jump to content
AngelDisc

(Module Gratuit) Multi Level Push Menu

Recommended Posts

Bonsoir.

 

Dans l'état, il est impossible de passer en 1.6 (Hook inexistant) 

 

Après, si t'es un bidouilleur ;) Tu peux créer 2 hooks, puis ajouter les hooks à ton thème.

 

Bon Dev.

  • Like 1

Share this post


Link to post
Share on other sites

Bonsoir.

 

Dans l'état, il est impossible de passer en 1.6 (Hook inexistant) 

 

Après, si t'es un bidouilleur ;)

 

Bon Dev.

Bonsoir , Merci du retour ok je bidouille ^^

Share this post


Link to post
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 license@prestashop.com 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 <contact@prestashop.com>
*  @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

Share this post


Link to post
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 license@prestashop.com 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 <contact@prestashop.com>
*  @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)

Share this post


Link to post
Share on other sites

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

 

Merci Ca fonctionne... 

Cela serait sympa de joindre le zip du module modifié non?

Share this post


Link to post
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 !

Share this post


Link to post
Share on other sites

Cela serait sympa de joindre le zip du module modifié non?

 

Salut Man , j'ai fait que les modifs "ça fonctionne" Quand j'aurai un peu de temps , il faut les intégrées dans le module, comme ça il y a qu'a installer.. :)

Edited by Soyons zen (see edit history)

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

Hello,

 

In AddRemove demo

 

If I add 20 elements with 'Counter add item' button, it is possible to use the scroll, why in Prestashop 1.7 no?

 

Best regards

Share this post


Link to post
Share on other sites

Fail to implement in 1.6  :(  , broke a lot of visual components, margins, module positions... Still very good work, nice menu and free!

 

Good work, thank you for sharing!

Edited by tali656 (see edit history)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

One Tip :)

Put:

{hook h='displayAfterBodyOpeningTag'}
{hook h='displayBeforeBodyClosingTag'}

 

Together in header.tpl under BODY tag :) less problems!

Share this post


Link to post
Share on other sites
On 02/12/2017 at 2:27 PM, web-port.pl said:

One Tip :)

Put:

{hook h='displayAfterBodyOpeningTag'}
{hook h='displayBeforeBodyClosingTag'}

 

Together in header.tpl under BODY tag :) less problems!

 

Hi, where is header.tpl under BODY tag ?

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More