Results 1 to 10 of 842

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sheffield Blue Template Support Thread

    Hi Picaflor,

    I have modified the main menu as you can see in www.kite-addic***tion.es/tienda (remove the ***)

    I would like a drop menu coming to each of the products category, but have no idea how to do it. I guess it is simple but dont know how.

    Right now the menus links work, which is good, but it would be nice to be able to have that drop menu for the categories.

    Kind regards,

    David

  2. #2
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sheffield Blue Template Support Thread

    Quote Originally Posted by speedyrider View Post
    Hi Picaflor,

    I have modified the main menu as you can see in www.kite-addic***tion.es/tienda (remove the ***)

    I would like a drop menu coming to each of the products category, but have no idea how to do it. I guess it is simple but dont know how.

    Right now the menus links work, which is good, but it would be nice to be able to have that drop menu for the categories.

    Kind regards,

    David
    DONE!!! its implemented now. I learned to pass variables to a class, and use the variable inside the class to start building the categories tree from there :)

  3. #3
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Sheffield Blue Template Support Thread

    Quote Originally Posted by speedyrider View Post
    DONE!!! its implemented now. I learned to pass variables to a class, and use the variable inside the class to start building the categories tree from there :)
    It would be helpful if you posted your code so that others with the same question can search and find the answer ;)

    Thanks,

    Anne

  4. #4
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sheffield Blue Template Support Thread

    Quote Originally Posted by picaflor-azul View Post
    It would be helpful if you posted your code so that others with the same question can search and find the answer ;)

    Thanks,

    Anne
    In the tpl_mega_menu file:

    <li class="escuela-li"><a href="index.php?main_page=index&cPath=12" class="drop"><?php echo HEADER_TITLE_NEOPRENOS; ?></a>

    <div class="dropdown_1column">
    <div class="col_1 firstcolumn">
    <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,12);
    $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>
    </div>


    </li>

    then in includes / classes / categories_ul_generator.php

    function buildTree($submenu=false, $variable)
    {
    $this->root_category_id = $variable;
    return $this->buildBranch($this->root_category_id, '', $submenu);
    }
    }

    So what i do is in the mega menu to call this buildtree function passing a variable that tells the categories generator where to start, the variable has to be your category number...works like a charm

  5. #5
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Sheffield Blue Template Support Thread

    Quote Originally Posted by speedyrider View Post
    In the tpl_mega_menu file:

    <li class="escuela-li"><a href="index.php?main_page=index&cPath=12" class="drop"><?php echo HEADER_TITLE_NEOPRENOS; ?></a>

    <div class="dropdown_1column">
    <div class="col_1 firstcolumn">
    <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,12);
    $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>
    </div>


    </li>

    then in includes / classes / categories_ul_generator.php

    function buildTree($submenu=false, $variable)
    {
    $this->root_category_id = $variable;
    return $this->buildBranch($this->root_category_id, '', $submenu);
    }
    }

    So what i do is in the mega menu to call this buildtree function passing a variable that tells the categories generator where to start, the variable has to be your category number...works like a charm

    That's great ;) I am sure that this will help others in the future.

    Thanks,

    Anne

  6. #6
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sheffield Blue Template Support Thread

    Not bad for someone with just 2 weeks into zencart haha

  7. #7
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sheffield Blue Template Support Thread

    ezpages in header is set to 1

  8. #8
    Join Date
    Feb 2014
    Location
    Indianapolis
    Posts
    14
    Plugin Contributions
    0

    Default Re: Sheffield Blue Template Support Thread

    Anne,
    I have been beating my head against the wall all night and can't figure out what's going on. I can not get the social media links on my slider bar to go to my links. i have even reloaded the complete template and reloaded the social_define.php file. When I reloaded the file, I confirmed they were your links then changed them to mine and saved. Even went to another computer to load my site and social links loaded your links instead of mine. I searched the thread and found a couple of instances just like mine but all were either cut short or something else changed. My site is www.bearcreekleather.com and facebook link is www.facebook.com/bclleather any idea what could possibly be causing this!?! I'm literally at my wits end. There's not many problems I can't figure out but this is one for the record books. Thanks in advance for any help.

  9. #9
    Join Date
    Jan 2014
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sheffield Blue Template Support Thread

    I got now another problem, also posted in the multilanguage ezpages thread.

    As you can see when you enter my site in the footer the useful links you can see a link in spanish called 'prueba' and 'test' in english. Its not appearing in the header menu under the info menu...ive reinstalled the multilanguage thread a couple of times but no success, its like its not reading the same ezpages database or something.

    if i insert a new ezpage both languages appear.

    Regards,

    David

 

 

Similar Threads

  1. v151 Responsive Sheffield Blue v1.0
    By picaflor-azul in forum Addon Templates
    Replies: 1159
    Last Post: 23 Apr 2023, 01:20 AM
  2. v155 Column issues on Product Listings with Sheffield Blue template
    By wmorris in forum General Questions
    Replies: 4
    Last Post: 15 Apr 2016, 10:01 PM
  3. Replies: 5
    Last Post: 30 May 2014, 02:43 AM
  4. v151 Blue Admin [Support Thread]
    By vvomble in forum Addon Templates
    Replies: 11
    Last Post: 27 May 2013, 09:43 PM
  5. Gingham Blue Template Support Thread
    By LissaE in forum Addon Templates
    Replies: 9
    Last Post: 17 Apr 2009, 10:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg