If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Fluorspar - add New and Specials to dropdown menu

Fluorspar - add New and Specials to dropdown menu

Locked

Started by cath on 17 Dec 2024, 9:25 PM · Views: 612

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
17 Dec 2024, 9:25 PM
#1
cath avatar

cath

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Fluorspar - add New and Specials to dropdown menu

I'm using ZC 2.01 and Fluorspar 1.8

I'd like to add "New Products" and "Specials" to the dropdown menu under "Shop".

You can see it at https://zencart6.webdesign.place/

I've looked at tpl_mega_menu.php and believe this is the relevant section

          <ul class="mega-menu "><!-- bof mega-menu -->
               <li class="categories-li fullwidth"><a class="drop first_Item" href="#"><?php echo HEADER_TITLE_CATEGORIES; ?></a><!-- bof cateories    -->
                    <div class="dropdown_expand ">
                         <div class="levels">
                         <?php
                               // load the UL-generator class and produce the menu list dynamically from there
                               require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
                               $zen_CategoriesUL = new zen_categories_ul_generator;
                               $menulist = $zen_CategoriesUL->buildTree(true);
                               $menulist = str_replace('"level4"','"level5"',$menulist);
                               $menulist = str_replace('"level3"','"level4"',$menulist);
                               $menulist = str_replace('"level2"','"level3"',$menulist);
                               $menulist = str_replace('"level1"','"level2"',$menulist);
                               $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
                               $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
                               echo $menulist;
                              ?>
                         </div>
                    </div>
               </li><!-- eof categories  -->

and I've looked at categories_ul_generator.php

but I can't work out where to put the items I want.

Thanks in advance!