Results 1 to 10 of 357

Hybrid View

  1. #1
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Hello. I'm having trouble getting this to work. I am attempting to test this out on a fresh 1.5.4 install on wamp on my local server. I have currently tried installing the mega menu on the responsive avonlee contempo template, and the normal avonlee contempo template, to no avail. The problem comes after I add the code to tpl header:

    "3. In your favorite plain text editor, open the includes/templates/YOUR_TEMPLATE/common/tpl_header.php file. If you do not already have this file in your template override directory, make an override for it by coping the includes/templates/template_default/common/tpl_header.php to includes/templates/YOUR_TEMPLATE/common/tpl_header.php.

    Directly before the ending line:

    <?php } ?>

    Add this code:

    <!--bof-mega menu display-->
    <?php require($template->get_template_dir('tpl_mega_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_mega_menu.php');?>
    <!--eof-mega menu display-->
    <div class="clearBoth"></div>

    Save the file."


    What happens is everything on the website disappears except the header. It is strange, and I am not sure what is the problem. Is this menu compatible with 1.5.4?

  2. #2
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    My Original tpl header:

    " </div>

    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>


    </div>

    <br class="clearBoth" />
    <!--eof-branding display-->



    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li>
    <?php } } ?>
    <li><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo $_SESSION['cart']->count_contents();?> <?php echo HEADER_TITLE_CART_ITEMS; ?> - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <?php }?>
    </ul>
    </div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->





    <!--eof-header logo and navigation display-->


    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof handheld menu display-->
    <?php require($template->get_template_dir('tpl_modules_mobile_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_mobile_categories_tabs.php'); ?>
    <!--eof handheld menu display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>"



    -After the code is added (I am adding it in the correct place, right?):



    </div>

    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>


    </div>

    <br class="clearBoth" />
    <!--eof-branding display-->



    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li>
    <?php } } ?>
    <li><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo $_SESSION['cart']->count_contents();?> <?php echo HEADER_TITLE_CART_ITEMS; ?> - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <?php }?>
    </ul>
    </div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->





    <!--eof-header logo and navigation display-->


    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof handheld menu display-->
    <?php require($template->get_template_dir('tpl_modules_mobile_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_mobile_categories_tabs.php'); ?>
    <!--eof handheld menu display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <!--bof-mega menu display-->
    <?php require($template->get_template_dir('tpl_mega_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_mega_menu.php');?>
    <!--eof-mega menu display-->
    <div class="clearBoth"></div>

    <?php } ?>

  3. #3
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by toomanyknots View Post
    My Original tpl header:

    " </div>

    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>


    </div>

    <br class="clearBoth" />
    <!--eof-branding display-->



    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li>
    <?php } } ?>
    <li><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo $_SESSION['cart']->count_contents();?> <?php echo HEADER_TITLE_CART_ITEMS; ?> - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <?php }?>
    </ul>
    </div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->





    <!--eof-header logo and navigation display-->


    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof handheld menu display-->
    <?php require($template->get_template_dir('tpl_modules_mobile_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_mobile_categories_tabs.php'); ?>
    <!--eof handheld menu display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>"



    -After the code is added (I am adding it in the correct place, right?):



    </div>

    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>


    </div>

    <br class="clearBoth" />
    <!--eof-branding display-->



    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li>
    <?php } } ?>
    <li><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo $_SESSION['cart']->count_contents();?> <?php echo HEADER_TITLE_CART_ITEMS; ?> - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <?php }?>
    </ul>
    </div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->





    <!--eof-header logo and navigation display-->


    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof handheld menu display-->
    <?php require($template->get_template_dir('tpl_modules_mobile_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_mobile_categories_tabs.php'); ?>
    <!--eof handheld menu display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <!--bof-mega menu display-->
    <?php require($template->get_template_dir('tpl_mega_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_mega_menu.php');?>
    <!--eof-mega menu display-->
    <div class="clearBoth"></div>

    <?php } ?>
    A white page or partial white page usially means there is a errorlog file created. go to your log folder in the zen cart installation and see if there are any. You can post the contents of the latest one here, and we can help you better.

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

    Default Re: Pure CSS Mega Menu

    Quote Originally Posted by toomanyknots View Post
    Hello. I'm having trouble getting this to work. I am attempting to test this out on a fresh 1.5.4 install on wamp on my local server. I have currently tried installing the mega menu on the responsive avonlee contempo template, and the normal avonlee contempo template, to no avail. The problem comes after I add the code to tpl header:

    "3. In your favorite plain text editor, open the includes/templates/YOUR_TEMPLATE/common/tpl_header.php file. If you do not already have this file in your template override directory, make an override for it by coping the includes/templates/template_default/common/tpl_header.php to includes/templates/YOUR_TEMPLATE/common/tpl_header.php.

    Directly before the ending line:

    <?php } ?>

    Add this code:

    <!--bof-mega menu display-->
    <?php require($template->get_template_dir('tpl_mega_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_mega_menu.php');?>
    <!--eof-mega menu display-->
    <div class="clearBoth"></div>

    Save the file."


    What happens is everything on the website disappears except the header. It is strange, and I am not sure what is the problem. Is this menu compatible with 1.5.4?
    It is compatible with 1.5.4. Check your logs folder for errors and correct them.

    Thanks,

    Anne

  5. #5
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Hello Anne. Here is my latest log:

    [14-Mar-2015 18:46:43 Europe/Paris] PHP Fatal error: 1054:Unknown column 'show_box_min_width' in 'field list' :: insert into layout_boxes

    (layout_template, layout_box_name, layout_box_status, layout_box_location, layout_box_sort_order, layout_box_sort_order_single, layout_box_status_single, show_box_min_width)

    values ('responsive_avonlee_contempo', 'banner_box.php', 0, 0, 0, 0, 0, 0) ==> (as called by) C:\wamp\www\zencart154test1\zenadmin\layout_controller.php on line 71 <== in C:\wamp\www\zencart154test1\includes\classes\db\mysql\query_factory.php on line 155

    [14-Mar-2015 18:46:43 Europe/Paris] PHP Stack trace:

    [14-Mar-2015 18:46:43 Europe/Paris] PHP 1. {main}() C:\wamp\www\zencart154test1\zenadmin\layout_controller.php:0

    [14-Mar-2015 18:46:43 Europe/Paris] PHP 2. queryFactory->Execute() C:\wamp\www\zencart154test1\zenadmin\layout_controller.php:71

    [14-Mar-2015 18:46:43 Europe/Paris] PHP 3. queryFactory->set_error() C:\wamp\www\zencart154test1\includes\classes\db\mysql\query_factory.php:262

    [14-Mar-2015 18:46:43 Europe/Paris] PHP 4. queryFactory->show_error() C:\wamp\www\zencart154test1\includes\classes\db\mysql\query_factory.php:132

    [14-Mar-2015 18:46:43 Europe/Paris] PHP 5. trigger_error() C:\wamp\www\zencart154test1\includes\classes\db\mysql\query_factory.php:155

  6. #6
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Can I do a mega menu like this with this plugin (this website has an awesome mega menu, it's easy to navigate, and you don't have to click 5 links to get to the product you want): http://www.outdoorsexperience.com/

  7. #7
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Like this:


  8. #8
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Tried it on a fresh install of 151 too, same thing happens. As soon as I add the code to includes/templates/template_default/common/tpl header.php everything under the header disappears:



    Here is the log for that:

    [15-Mar-2015 16:54:44 Europe/Paris] PHP Warning: require(includes/templates/template_default/common/tpl_mega_menu.php): failed to open stream: No such file or directory in C:\wamp\www\zencart151\includes\templates\template_default\common\tpl_header.php on line 109

    [15-Mar-2015 16:54:44 Europe/Paris] PHP Stack trace:

    [15-Mar-2015 16:54:44 Europe/Paris] PHP 1. {main}() C:\wamp\www\zencart151\index.php:0

    [15-Mar-2015 16:54:44 Europe/Paris] PHP 2. require() C:\wamp\www\zencart151\index.php:97

    [15-Mar-2015 16:54:44 Europe/Paris] PHP 3. require() C:\wamp\www\zencart151\includes\templates\template_default\common\tpl_main_page. php:73

    [15-Mar-2015 16:54:44 Europe/Paris] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/common/tpl_mega_menu.php' (include_path='.;C:\php\pear') in C:\wamp\www\zencart151\includes\templates\template_default\common\tpl_header.php on line 109

    [15-Mar-2015 16:54:44 Europe/Paris] PHP Stack trace:

    [15-Mar-2015 16:54:44 Europe/Paris] PHP 1. {main}() C:\wamp\www\zencart151\index.php:0

    [15-Mar-2015 16:54:44 Europe/Paris] PHP 2. require() C:\wamp\www\zencart151\index.php:97

    [15-Mar-2015 16:54:44 Europe/Paris] PHP 3. require() C:\wamp\www\zencart151\includes\templates\template_default\common\tpl_main_page. php:73

  9. #9
    Join Date
    Jun 2014
    Location
    hamilton, ohio
    Posts
    100
    Plugin Contributions
    0

    Default Re: Pure CSS Mega Menu

    Does anyone have a guess what could be the problem?

 

 

Similar Threads

  1. Help with Mega Menu css customization
    By swdynamic in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jul 2013, 01:21 AM
  2. v139h Mega Menu Mess
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Nov 2012, 07:58 PM
  3. v150 Mega Menu assistance
    By Fancyfrills in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 24 Aug 2012, 06:16 PM
  4. Horizontal Drop Menu sort order of mega-menu
    By familynow in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 19 Oct 2011, 04:39 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