Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Graphical categorie menu


tolster

Recommended Posts

Posted

Hi

 

I'm looking for a contribution which can achieve a category menu similar to the one below. Does anyone know a good solution? Each category level needs its own background image. Preferably 3 to 4 levels deep.

 

sample-menu-1-v1.gif

 

Gr,

Tolster

  • 1 month later...
Posted

Hmm Well I have sort of worked out how to do what i want dont know if this will be a help to anyone

 

but the code i have working atm is

 

else 
	{
		$cPath_new = 'cPath=' . $tree[$counter]['path'];
	}
			 //*************** NEW CODE *********************

			 echo '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_BUTTON . $tree[$counter]['name'], $tree[$counter]['name']) . '</a></br>';

			 //*************** NEW CODE *********************

			if ($tree[$counter]['next_id'] != false) 
	{
		tep_show_category($tree[$counter]['next_id']);
	}

 

This then looks in a folder i have made in images (image/buttons) and loads the image for the link that has the same name as it

 

E.G

 

you have a category

 

Named: Hardware

Image Name : Hardware.gif , Hardware.jpg OR Hardware.png

 

Seems not to need to be a set File type so long as its an image it will load it. This is a Very Eairly test so i mite not work very well and so far it doesnt do anything diffrent for subcats but seems to work

 

:D Dave.

Posted

I got rollover images for top level categories working on this site I sent live last week:

 

http://www.silverpcs.com

 

I'll be releasing it as a contribution next week as there didn't seem to be any that did the same job when I was looking to achieve this effect when I built the store.

  • 4 weeks later...
Posted
I got rollover images for top level categories working on this site I sent live last week:

 

http://www.silverpcs.com

 

I'll be releasing it as a contribution next week as there didn't seem to be any that did the same job when I was looking to achieve this effect when I built the store.

 

 

I'm looking forward to seeing it. Congratulations!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...