News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Submenu not working ...

Started by CarloG, August 31, 2017, 06:38:06 AM

Previous topic - Next topic

CarloG

Hi everyone and thanks for you answers, as always !
I have a new issue regarding the HOME button on an abantecart e-commerce website.
My customer asked me, times ago, to have only the HOME button, and you helped me getting rid of the standard dropodown with coding the page
category_top.tpl.

Now he asked to put the Privacy Policy and other pages in the dropdown again.
So I did take the code I commented on category_top.tpl :

<ul id="main_menu" class="nav">
                   <?php
                   $storefront_menu = (array)$this->session->data['storefront_menu'];
                   foreach ($storefront_menu as $i => $menu_item) {
                      if ($menu_item['id'] == 'home') {
                         unset($storefront_menu[$i]);
                         break;
                      }
                   }?>
                   <!-- Top Nav Start -->
                   <?php echo  buildStoreFrontMenuTree($storefront_menu); ?>
                </ul>

and uncommented that.
,
The dropdown menu appeared again, but as I did not change anything in the administration section of menu,
I'd expect the dropdown appear with all the standard voices.
Instead of it, I have only a blank line, as if there are no submenu items in the admin section.

Can you help me solve this issue, please ?

Thank you.

CarloG

Forum Rules Code of conduct
AbanteCart.com 2010 -