Jump to content

recherche menu horizontal deroulant style lavalamp


Recommended Posts

bonjour
je recherche un module pour un menu horizontal 'style lavalamp' mais deroulant en 2 voir 3 sous categorie
je voudrai savoir si cela existe
je trouve le lavalamp tres sympa mais voila il prend pas en compte mais sous categorie et je trouve cela dommage
est-ce que quelqu'un a une solution
ou connait mon module miracle..

merci

Link to comment
Share on other sites

Bonjour,

Je suis un développeur web d'Israël. J'ai une solution facile pour vous (sans module):


header.php
entrez le code suivant avant $smarty->display(_PS_THEME_DIR_.'header.tpl');

/* Get first level categories */
$blockCategTree = Category::getHomeCategories(_USER_ID_LANG_);

/* Set the current page */
if (isset($_GET['id_category']))
{
$cookie->last_visited_category = intval($_GET['id_category']);
$smarty->assign('currentCategoryId', intval($_GET['id_category']));
}

/* Assign the data */
$smarty->assign('blockCategTree', $blockCategTree);


Header.tpl

{foreach from=$blockCategTree item=child name=blockCategTree}
<a href="{$link->getCategoryLink($child.id_category, true)}">{$child.name|escape:htmlall:'UTF-8'}</a>
{/foreach}



Cette solution est simple et vous pouvez utilizer ce ou vous voulez.
si vous aimer, entrez
EG Studio - Prestashop E-Commerce

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

Bonjour chon069, avez vous trouvé une solution à votre problème depuis le temps ? Je recherche la même chose.

Egstudio : comment ce code peut il agir avec le module lavalamp à partir du header. Puis j'ai testé le code cela n'a rien changé. Donc ou vouliez vous en venir svp ?

Link to comment
Share on other sites

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...