Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Dynamenu" for osCommerce


Recommended Posts

Hello all,

 

I'm a bit of a newbie when it comes to OSC and PHP programming so I am hoping that someone can come up with a solution to my problem.

 

I have the latest version of OSC, STS and Dynamenus installed and all seems to work fine except for one minor problem. I would like to add a horizontal drop down menu to my sts_template, but not in a standard infobox.

 

I have added the necessary placeholder in the sts_template.html file and set $menu_type = 0 and $show_dmcats_as_box = false in the dm_categories.php file. The problem is that if I set this combination in dm_categories.php I can only get the main categories to display and an error is generated when the the mouse over event is generated. Bizarrely any other combination seems to work.

 

have done a bit of investigative work and as far as I can see the scripts parse correctly until it calls the "tep_make_cat_dmlist()" function on the following line in the dm_categories.php file.

 

// Generate the menu data output (uses configuration options above)

$categories_string = tep_make_cat_dmlist();

 

Also, the test

 

if ($menu_type < 2) { // Setup for DHTML style menus

 

seems to be ignored if $menu_type=0.

 

This means that the necessary scripts:

 

"includes/functions/dynamenu/libjs/layersmenu-library.js" and

"includes/functions/dynamenu/libjs/layersmenu.js"

 

are not included so the error in the browser is generated.

 

Does anyone have any suggestions as to how I can solve this problem? I have tried manually inserting the code from the two scripts and this solves the problem, but i would rather have a "proper" solution than my hack job.

 

Many thanks in advance.

Link to comment
Share on other sites

just thought i'd bump this again...

 

ok - here's my attempt at trying to make the Articles Manager menu the same as the dynamenu. i'v replaced all category instances with topic instances.

 

it works, sorta..... its displaying both menu's - but the menu behaviour is completely whack now.

 

example - if i click on an Article category - it opens up - but it also opens up the Products category, most categories on either wont open at all - so it seems like its opening up the categories with same ID - even though they use different id names in both files.

 

can anyone please help me with this - tell me what i am doing wrong?

 

pls - i'm not a developer - but i am trying... :blush:

 

<?php
/*
 $Id: dm_categories.php,v 1.00 2006/05/07 01:13:58 nate_02631 Exp $

 Ties the store category menu into the PHP Layers Menu library, allowing display
of categories as DTHML drop-down or fly-out menus, collapsable tree-style menus
or horizontal/vertical indented plain menus.

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2006 Nate Welch [url="http://www.natewelch.com"]http://www.natewelch.com[/url]

 Released under the GNU General Public License
*/

// BEGIN Configuration Options

 // Set the value below corresponding to the type of menu you want to render
// 0 = Horizontal Drop-down; 1 = Vertical Flyout; 2 = Tree Menu;
// 3 = Plain Horizontal Menu; 4 = Plain Vertical Menu
// Include the appropriate stylesheet in your store stylesheet, and if rendering
// types '0' or '1', you must also echo (output) the "menu footer" variable
// in your store footer as described in the readme (or submenus won't work)
$menu_type = 2;

 // Set to false to display the menu output only. Set to true to display in
// a regular box. The former is useful for better integrating the menu with your layout.
$show_dmart_as_box = true;				

 // Set to 'true' to assign TITLE tags to each of the menu's items, 'false' to leave blank
$menu_use_titles = true;	

 // Name of the icon file to be used preceding menu items. Leave blank for no icons.
// NOTE: Does not apply to plain style menus. Icon should be in the /images directory
$menu_icon_file = '';

// Width and height of icons used in menus (does not apply to plain menus).
$menu_icon_width = 16;
$menu_icon_height = 16;

 // Set the graphic to be used for the forward arrow and down arrow images used in 
// drop-down and fly-out menus. Images must reside in your catalog's /images directory
$menu_fwdarrowimg  = 'forward-arrow.png';		
 $menu_downarrowimg = 'down-arrow.png';		

// Indicates whether or not to render your entire category list or just the root categories
// and the currently selected submenu tree. Rendering the full list is useful for dynamic menu
// generation where you want the user to have instant access to all categories. The other option
// is the default oSC behaviour, when the subcats aren't available until the parent is clicked,
// more suitable for plain-style menus 
$show_full_tree = true;		

// For tree menus, set to true to have only nodes corresponding to the current category path
// expanded. If set to false, the tree menu will retain expanded/collapse nodes the user has
// selected (as well as expanding any for categories they've entered)
$menu_tree_current_path = true;				

 // Set the three numerical values below to adjust the offset of submenus in
 // horizontal drop-down and vertical fly-out menus. Values adjust the following (in order)
 // Top Offset: # of pixels from top border of previous menu the submenu appears
 // Right Offset: # of pixels from right border of previous menu the submenu appears
 // Left Offset: # of pixels from left border of previous menu the submenu appears
 // if the submenu pops to left (i.e. if window border is reached).  Negative values are allowed.
 $menu_layer_offset = array (0,4,4);	

// Show icons on tree menus? If set to false, only expand/collapse icons and connecting lines are shown
$GLOBALS['dm_tree_folder_icons'] = true;

// This is the HTML that you would like to appear before/after your categories menu if *not*
// displaying in a standard "box". This is useful for reconciling tables or clearing
// floats, depending on your layout needs.	For example if not including in a box in the
// default osC template, you would need opening/closing <tr><td> tags...
$before_nobox_html = '';
 $after_nobox_html = '';

// Use this option if you have a *lot* of subcategories in a DHTML style menu and your
// submenus won't fit on the page.  Set $divide_subarts to the max # of subcategories you want
// to display.  The menu will show a "more..." link and display the remaining subcategories
// under that selection. Leave at "0" to not divide your subcategories.
$divide_subarts = 0;	

// The text you want to display to indicate more subcategories are available
// This can be set a string or to a language constant you define.
$divide_subarts_text = 'more...';	

// END Configuration Options
// Misc setting to make folder icon clickable to expand tree menu nodes
$GLOBALS['dm_tree_titleclick'] = true;	

// Initialize HTML and info_box class if displaying inside a box
if ($show_dmart_as_box) {
   echo '<tr><td>';
   $info_box_contents = array();
   $info_box_contents[] = array('text' => BOX_HEADING_ARTICLES);
   new infoBoxHeading($info_box_contents, true, false);					
}

// Generate the menu data output (uses configuration options above)
$articles_string = tep_make_art_dmlist();

// Include required libraries based on menu type
require_once 'includes/functions/dynamenu/lib/PHPLIB.php';
require_once 'includes/functions/dynamenu/lib/layersmenu-common.inc.php';

if ($menu_type < 2) { // Setup for DHTML style menus

   ?>
       <script language="JavaScript" type="text/javascript">
           <!--
               <?php require_once 'includes/functions/dynamenu/libjs/layersmenu-browser_detection.js'; ?>
           // -->
       </script>
       <script language="JavaScript" type="text/javascript" src="includes/functions/dynamenu/libjs/layersmenu-library.js"></script>
       <script language="JavaScript" type="text/javascript" src="includes/functions/dynamenu/libjs/layersmenu.js"></script>
   <?php

   require_once 'includes/functions/dynamenu/lib/layersmenu.inc.php';
   $mid = new LayersMenu($menu_layer_offset[0],$menu_layer_offset[1],$menu_layer_offset[2],1);

} elseif ($menu_type > 2) { // Setup for plain style menus

   require_once 'includes/functions/dynamenu/lib/plainmenu.inc.php';
   $mid = new PlainMenu();

} else {  // Setup for tree style menus

	?>
       <script language="JavaScript" type="text/javascript">
           <!--
               <?php require_once 'includes/functions/dynamenu/libjs/layersmenu-browser_detection.js'; ?>

							<?php

							   if ($menu_tree_current_path) {
								     echo "\n".'var menu_tree_current_path = true';   		   
								 } else {
								     echo "\n".'var menu_tree_current_path = false'; 									 
								 }

							?>
       // -->
       </script>
       <script language="JavaScript" type="text/javascript" src="includes/functions/dynamenu/libjs/layerstreemenu-cookies.js"></script>
   <?php

       require_once 'includes/functions/dynamenu/lib/treemenu.inc.php';
       $mid = new TreeMenu();

}

// Set menu config variables
$mid->setDirroot('./');
$mid->setLibjsdir('./includes/functions/dynamenu/libjs/');

if ($menu_type !=2) {
   $mid->setTpldir('./includes/functions/dynamenu/templates/');
}

$mid->setImgdir('./images/');
$mid->setImgwww('images/');
$mid->setIcondir('./images/');
$mid->setIconwww('images/');
$mid->setIconsize($menu_icon_width, $menu_icon_height);

// Generate menus
$mid->setMenuStructureString($articles_string);
$mid->parseStructureForMenu('artmenu');

switch ($menu_type) {
   case 0: // Horizontal drop-down
       $mid->setDownArrowImg($menu_downarrowimg);
       $mid->setForwardArrowImg($menu_fwdarrowimg);
       $mid->setHorizontalMenuTpl('layersmenu-horizontal_menu.ihtml');						
       $mid->setSubMenuTpl('layersmenu-horiz_sub_menu.ihtml');							
		  $mid->newHorizontalMenu('artmenu');	
			$mid->printHeader();
       $articles_menu = $mid->getMenu('artmenu');
			$GLOBALS['dmfooter'] = $mid->getFooter();								
       break;
   case 1:  // Vertical fly-out
       $mid->setDownArrowImg($menu_downarrowimg);
       $mid->setForwardArrowImg($menu_fwdarrowimg);
       $mid->setVerticalMenuTpl('layersmenu-vertical_menu.ihtml');				
       $mid->setSubMenuTpl('layersmenu-vert_sub_menu.ihtml');							
			$mid->newVerticalMenu('artmenu');
			$mid->printHeader();
       $articles_menu = $mid->getMenu('artmenu');
			$GLOBALS['dmfooter'] = $mid->getFooter();												
       break;
   case 2:  // Tree menu
	    $articles_menu = $mid->newTreeMenu('artmenu');
       break;
   case 3:  // Horizontal plain menu
       $mid->setPlainMenuTpl('layersmenu-horizontal_plain_menu.ihtml');		
       $articles_menu = $mid->newHorizontalPlainMenu('artmenu');							
       break;
   case 4:  // Vertical plain menu
       $mid->setPlainMenuTpl('layersmenu-plain_menu.ihtml');		
       $articles_menu = $mid->newPlainMenu('artmenu');						
       break;	 	 
}	
// Output list inside a box if specified, otherwise just output unordered list
if ($show_dmart_as_box) {
   $info_box_contents = array();
   $info_box_contents[] = array('text' => $articles_menu);
   new infoBox($info_box_contents);
	echo '</td></tr>';	
} else {
	echo $before_nobox_html;	
   echo $articles_menu;
	echo $after_nobox_html;
}

// Create the root category list
function tep_make_art_dmlist($rootartid = 0, $maxlevel = 0){

   global $tPath_array, $show_full_tree, $languages_id;

   global $idname_for_menu, $tPath_array, $show_full_tree, $languages_id;

   // Modify category query if not fetching all categories (limit to root cats and selected subcat tree)
	if (!$show_full_tree) {
       $parent_query	= 'AND (t.parent_id = "0"';	

			if (isset($tPath_array)) {

			    $tPath_array_temp = $tPath_array;

			    foreach($tPath_array_temp AS $key => $value) {
					    $parent_query	.= ' OR t.parent_id = "'.$value.'"';
					}

					unset($tPath_array_temp);
			}	

       $parent_query .= ')';				
	} else {
       $parent_query	= '';	
	}		

	$result = tep_db_query('select t.topics_id, td.topics_name, t.parent_id from ' . TABLE_TOPICS . ' t, ' . TABLE_TOPICS_DESCRIPTION . ' td where t.topics_id = td.topics_id and td.language_id="' . (int)$languages_id .'" '.$parent_query.'order by sort_order, td.topics_name');

	while ($row = tep_db_fetch_array($result)) {				
       $table[$row['parent_id']][$row['topics_id']] = $row['topics_name'];
   }

   $output .= tep_make_art_dmbranch($rootartid, $table, 0, $maxlevel);

   return $output;
}

// Create the branches off the category list
function tep_make_art_dmbranch($parcat, $table, $level, $maxlevel) {

   global $tPath_array, $menu_use_titles, $menu_icon_file, $divide_subarts, $divide_subarts_text;

	$lvl_adjust = 1;

   $list = $table[$parcat];

   // Build data for menu
	while(list($key,$val) = each($list)){

			if (isset($tPath_array) && in_array($key, $tPath_array)) {
           $this_expanded = '1';
           $this_selected = 'dmselected';						
       } else {
           $this_expanded = '';
           $this_selected = '';									
	    }	

       if (!$level) {
			    unset($GLOBALS['tPath_set']);
					$GLOBALS['tPath_set'][0] = $key;
           $tPath_new = 'tPath=' . $key;

       } else {
					$GLOBALS['tPath_set'][$level] = $key;		
           $tPath_new = 'tPath=' . implode("_", array_slice($GLOBALS['tPath_set'], 0, ($level+1)));

					$this_subcat_count++;
       }

			if ($menu_use_titles) {
			    $this_title = $val;
			} else {
			    $this_title = '';				
			}				

       if (SHOW_ARTICLE_COUNTS == 'true') {
           $articles_in_topic = tep_count_articles_in_topic($key);
           if ($articles_in_topic > 0) {
               $val .= ' (' . $articles_in_topic . ')';
           }
       }

			// Output for file to be parsed by PHP Layers Menu
			// Each line (terminated by a newline "\n" is a pipe delimited string with the following fields:
			// [dots]|[text]|[link]|[title]|[icon]|[target]|[expanded]
			// dots - number of dots signifies the level of the link '.' root level items, '..' first submenu, etc....
			// text - text for link; title - tooltip for link; icon - icon for link; target - "dmselected" CSS class if item is selected
			// expanded - signifies if the node is expanded or collapsed by default (applies only to tree style menus)

			// Add "more" submenu if dividing subcategories
			if ($this_subcat_count > $divide_subarts && $divide_subarts) {
           $output .= str_repeat(".", $level+$lvl_adjust).'|'.$divide_subarts_text.'||'.$this_title.'|'.$menu_icon_file.'|'.$this_selected.'|'.$this_expanded."\n";							 
			    $this_subcat_count = 1;
					$lvl_adjust ++;
			}

       $output .= str_repeat(".", $level+$lvl_adjust).'|'.$val.'|'.tep_href_link(FILENAME_DEFAULT, $tPath_new).'|'.$this_title.'|'.$menu_icon_file.'|'.$this_selected.'|'.$this_expanded."\n";							 


       if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) {
           $output .= tep_make_art_dmbranch($key,$table,$level + $lvl_adjust,$maxlevel);
       }

	} // End while loop

   return $output;
}	

?>

Link to comment
Share on other sites

  • 4 weeks later...

Greetings,

 

I have this fine contribution running so far, but now I need a change done and don't know how.

 

Customer wants a behaviour change for the tree menu:

 

- remove all icons and lines

- when clicking on a category that does contain subcategories, expand/collapse that part of the menu tree

- when clicking on a category that does not contain subcategories, open product listing for that category

 

Categories contain either subcategories or products, never both, so that shouldn't be a problem.

 

Any ideas on how to do that?

 

Alexander

Link to comment
Share on other sites

You can also double check the STS Power Pack site (http://www.oscommerce.com/community/contributions,4456 - Matthew Richie has posted a Mega Power Pack Bundle that includes using Dynamenu for more than one menu along with STS :thumbsup:

 

 

Hello all,

 

I'm a bit of a newbie when it comes to OSC and PHP programming so I am hoping that someone can come up with a solution to my problem.

 

I have the latest version of OSC, STS and Dynamenus installed and all seems to work fine except for one minor problem. I would like to add a horizontal drop down menu to my sts_template, but not in a standard infobox.

 

I have added the necessary placeholder in the sts_template.html file and set $menu_type = 0 and $show_dmcats_as_box = false in the dm_categories.php file. The problem is that if I set this combination in dm_categories.php I can only get the main categories to display and an error is generated when the the mouse over event is generated. Bizarrely any other combination seems to work.

 

have done a bit of investigative work and as far as I can see the scripts parse correctly until it calls the "tep_make_cat_dmlist()" function on the following line in the dm_categories.php file.

 

// Generate the menu data output (uses configuration options above)

$categories_string = tep_make_cat_dmlist();

 

Also, the test

 

if ($menu_type < 2) { // Setup for DHTML style menus

 

seems to be ignored if $menu_type=0.

 

This means that the necessary scripts:

 

"includes/functions/dynamenu/libjs/layersmenu-library.js" and

"includes/functions/dynamenu/libjs/layersmenu.js"

 

are not included so the error in the browser is generated.

 

Does anyone have any suggestions as to how I can solve this problem? I have tried manually inserting the code from the two scripts and this solves the problem, but i would rather have a "proper" solution than my hack job.

 

Many thanks in advance.

~Tracy
 

Link to comment
Share on other sites

hi,

i have installed this contribution and its working good with me except one thing.

 

look at my demo site www.dsxmovies.com/acommerce/

 

i have inserted horizontal dhtml menu on top.. but my site is fixed in width

and the buttons are coming out of the box.. is there any way it can be converted onto two lines so it can be used properly!??????

 

please help me out in it!

thx

bbye

outside links are not allowed in signatures

Link to comment
Share on other sites

hi everybody.... i need some help...

 

I have a long listing of sub categories listed with the dynamenu setup (see www.ir-usa.com/cat) the problem is that the list is so long that it goes down below the bottom of the page.... and you have to scroll down to see the rest of the menu.

 

is there a way to make it so that it will not do that.... where if the menu gets to the bottom of the page, it will create a new column?

 

does that make sense???

 

I appreciate any help.

 

thanks.

Link to comment
Share on other sites

I have a long listing of sub categories listed with the dynamenu setup (see www.ir-usa.com/cat) the problem is that the list is so long that it goes down below the bottom of the page.... and you have to scroll down to see the rest of the menu.

Umm... you already asked that question and were given the answer... look at the $divide_subcats option in the dm_categories.php configuration...

** Please do not PM with personal support requests (even if offering "payment"). Thank you.

Link to comment
Share on other sites

Greetings,

 

I have this fine contribution running so far, but now I need a change done and don't know how.

 

Customer wants a behaviour change for the tree menu:

 

- remove all icons and lines

- when clicking on a category that does contain subcategories, expand/collapse that part of the menu tree

- when clicking on a category that does not contain subcategories, open product listing for that category

 

Categories contain either subcategories or products, never both, so that shouldn't be a problem.

 

Any ideas on how to do that?

 

Alexander

 

Never mind, I found it.

Link to comment
Share on other sites

Here is my solution for STS and dynamenu

 

in includes/application_bottom.php

 

add

 

echo $GLOBALS['dmfooter'];

 

before the close

 

?>

 

then in includes/modules/sts_inc/sts_column_left.php

 

in this section

 

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

$sts->restart_capture ('categorybox', 'box');

 

 

change

 

include(DIR_WS_BOXES . 'categories.php');

 

to

 

include(DIR_WS_BOXES . 'dm_categories.php');

 

and that should work with sts

 

 

J

Link to comment
Share on other sites

  • 4 weeks later...

Can someone diagnose what's happening within my Dynamenu? I love it, by the way. I've been using it for quite a while now. :)

 

Let's say I start with a parent category and a subcategory underneath it, like this:

 

Music

The 80s

 

But, I have a few items from the 70s and wanted to create a new subcat for that, so I did and it now looks like this:

 

Music

The 70s

The 80s

 

I moved an item from the 80s cat to the 70s cat and when I click on the 70s cat, the item is there.

 

BUT...when I click on the item itself...the highlighting in the category menu reverts back to the 80s subcat and so does the breadcrumb trail in the header. It still 'thinks' the item is in the 80s category, and it's not. I did not copy or link it...I MOVED it. The item is clearly gone from the 80s category in Admin and now resides in the 70s category.

 

Any ideas why that's happening?

Link to comment
Share on other sites

  • 2 weeks later...

Hi, I am trying to do the same as in one of the earliest posts here: expand the root categories by default to 1st level subcategories in tree menu. I added the line

 

$this_expanded = '1'; // Add this line to expand all root categories

 

right after

 

if (!$level) {

 

But it does not work. It looks like it's trying though... ;-) When I load the page, the little folder icons open up and quickly close back down again before any expansion would happen. If I open them manually, they stay opened, but otherwise they don't. Any ideas?

Link to comment
Share on other sites

Hi, I am trying to do the same as in one of the earliest posts here: expand the root categories by default to 1st level subcategories in tree menu. I added the line

 

$this_expanded = '1'; // Add this line to expand all root categories

 

right after

 

if (!$level) {

 

But it does not work. It looks like it's trying though... ;-) When I load the page, the little folder icons open up and quickly close back down again before any expansion would happen. If I open them manually, they stay opened, but otherwise they don't. Any ideas?

 

Hang on. Got it working now. :blush: My bad. The method suggested works.

Link to comment
Share on other sites

Hi Nate,

 

I've noticed throughout this thread that you have reiterated several times that the 'dmfooter' should be placed before the closing </body> tag. May I ask the importance of this? I am using STS 4.5.8 along with Dynamenu (and several other contrib's) and I've found that if I call the 'dmfooter' from inside the template, or the footer.php file, it does not work. There are no flyouts and there is no information from the dmfooter page. When I call the 'dmfooter' from application_bottom.php I then get working flyouts and the information is called from the dmfooter page - however, it is placed after the closing </body> tag.

 

Not sure how to get the dmfooter information called in before the closing </body> tag - and not sure why that's important if it functions properly when called after the closing </body> tag.

 

Thank you for any light you can shed on the importance of this :blush:

~Tracy
 

Link to comment
Share on other sites

Hi all,

 

I tried searching this pst but there where so many replies that i must have mist it.

 

I'm trying to limit the menu to a set of first level category id's.

 

$result = tep_db_query('select c.categories_id, cd.categories_name, c.parent_id from ' . TABLE_CATEGORIES . ' c, ' . TABLE_CATEGORIES_DESCRIPTION . ' cd where  c.categories_id IN (184,185,195) and c.categories_id = cd.categories_id and cd.language_id="' . (int)$languages_id .'" '.$parent_query. 'order by sort_order, cd.categories_name');

 

When I use this query I get the requested menu items but they won't fold out. (the subcategories don't come up when hovering).

 

Any one with an idea on how I could get this to work fully?

Link to comment
Share on other sites

Here is my solution for STS and dynamenu

 

in includes/application_bottom.php

 

add

 

echo $GLOBALS['dmfooter'];

 

before the close

 

?>

 

then in includes/modules/sts_inc/sts_column_left.php

 

in this section

 

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

$sts->restart_capture ('categorybox', 'box');

 

 

change

 

include(DIR_WS_BOXES . 'categories.php');

 

to

 

include(DIR_WS_BOXES . 'dm_categories.php');

 

and that should work with sts

 

 

J

Hello J, There is a good solution posted in the STSv4 Power Pack site. Not really a solution but more of a "How to". :thumbsup:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

HELPPPP ...

 

I need to hide categories with no products in the menu (or offline products),

I use the vertical Fly-out ...

Its possible in Dynamenu ???

GREAT MENU

 

please help

 

TKS in advance

Link to comment
Share on other sites

Hi all,

 

I tried searching this pst but there where so many replies that i must have mist it.

 

I'm trying to limit the menu to a set of first level category id's.

 

$result = tep_db_query('select c.categories_id, cd.categories_name, c.parent_id from ' . TABLE_CATEGORIES . ' c, ' . TABLE_CATEGORIES_DESCRIPTION . ' cd where  c.categories_id IN (184,185,195) and c.categories_id = cd.categories_id and cd.language_id="' . (int)$languages_id .'" '.$parent_query. 'order by sort_order, cd.categories_name');

 

When I use this query I get the requested menu items but they won't fold out. (the subcategories don't come up when hovering).

 

Any one with an idea on how I could get this to work fully?

 

I posted this earlier, my best guess is that it doesn't work because of the sts template system, it appears that what I pasted in the footer isn't doing it when I change the query.

 

Still puzzled at this one.

Link to comment
Share on other sites

I posted this earlier, my best guess is that it doesn't work because of the sts template system, it appears that what I pasted in the footer isn't doing it when I change the query.

 

Still puzzled at this one.

 

Double check the STS forums - Bill has posted how to have Dynamenu work with STS several times there :)

~Tracy
 

Link to comment
Share on other sites

I was able to use Hide Products and Categories for Separate Pricing Per Customer contribution and just edit the queries for Dynamenu accordingly and it worked great!! :thumbsup:

 

HELPPPP ...

 

I need to hide categories with no products in the menu (or offline products),

I use the vertical Fly-out ...

Its possible in Dynamenu ???

GREAT MENU

 

please help

 

TKS in advance

~Tracy
 

Link to comment
Share on other sites

hi! I wanted to download the Dynamenu from the Contributions website, but unfortunately, there have been to many updates to it.

Can someone put the whole package toghether so that ppl download and install it with ease?

thank you!

 

The full package is this one: Dynamenu" for osCommerce v1.11 "Missing Images" update - posted by Nate on May 27th 2006. Everything else is on an "as needed" basis. If you need one of the newer updates or add-on's, then download and install - if you don't need it, then you don't have to worry about it. :thumbsup:

~Tracy
 

Link to comment
Share on other sites

Double check the STS forums - Bill has posted how to have Dynamenu work with STS several times there :)

Yes I know, Bill does a very good job in doing that, but this isn't the problem I am facing.

When I leave the query as is (pulling all the top categories from the database) everything works fine.

The menu's extend prober like they should.

 

When I changed the query like posted previously, pulling a list of desired main categories and not all, that the menu started to act strangely.

 

The menu won't extend I will see the desired main categories in my menu, but when you hover over them nothing happens.

 

I'm not sure if this problem is related to STS it's just one of the possibilities out there, but it feels like the same problem people where facing when trying to implement sts and this menu.

 

When you don't place that one line of code in your footer then the menu won't extend. But I do have that line! I'm just wondering what that line does and if that could be the reason of this strange behavior now.

Link to comment
Share on other sites

Yes I know, Bill does a very good job in doing that, but this isn't the problem I am facing.

When I leave the query as is (pulling all the top categories from the database) everything works fine.

The menu's extend prober like they should.

 

When I changed the query like posted previously, pulling a list of desired main categories and not all, that the menu started to act strangely.

 

The menu won't extend I will see the desired main categories in my menu, but when you hover over them nothing happens.

 

I'm not sure if this problem is related to STS it's just one of the possibilities out there, but it feels like the same problem people where facing when trying to implement sts and this menu.

 

When you don't place that one line of code in your footer then the menu won't extend. But I do have that line! I'm just wondering what that line does and if that could be the reason of this strange behavior now.

From the readme:

The dmfooter variable outputs the hidden submenus used by those menu types. It is important to output this as the last thing in your layout (after all other output) to ensure proper rendering of submenus.

 

To help rule out STS, turn STS off in the admin and then check your menu expansion. If it works without STS then we will have to look a little deeper into this. If not, then I would assume your issue is in the dm_categories.php file.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...