Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nested category list


Guest

Recommended Posts

Posted

Hi all,

 

I am coming to osc from zen cart as their support forum stinks. The main reason I tried zen 1st is because it looked easier to customize. Now I have BTS up and running and all seems ok.

 

So fingers crossed I get a reply here :)

 

Please bear in mind that I am an osc newbie, however I am not an XHTML or CSS newbie. Please go easy with me...

 

I am going for a full CSS layout, fine. Now what I want to do is change the default behavior of the category list in the sidebar.

 

I want to use nested listed for sub categories, like this:

 

<ul>
<li>main cat 1</li>
<li>main cat 2</li>
<li>main cat 3
 <ul>
 <li>sub cat 1</li>
 <li>sub cat 2</li>
 <li>sub cat 3</li>
 </ul>
</li>
<li>main cat 4</li>
</ul>

 

In the example above "main cat 3" has sub cats, so what it needs to do is start a new list so that it is nested.

 

I have changed the default behavior to do a normal list for both main and subs. Does anyone have an idea of how to implement this so that if a main cat has sub cats it starts the new nested list.

 

I hope I get more luck here than I did with Zen Cart. Any advice would be great, any questions just shout me.

 

Cheers

 

Steve

Posted

Look for the Cool Menus contribution - this will do what you want for categories. There are quite a few contributions of the same type.

 

You will not (unfortunately) make osCommerce fully css compliant, although with a lot of effort you can improve things greatly.

 

Vger

Posted

Hi and thanks for the quick reply.

 

It's a shame that you say that it isn't possible to make osc fully compliant... Surely it is possible. I know there are a lot of tables and bad CSS to wade through. :blink:

 

I am currently looking at a contribution called "Great Categories". Someone has added CSS support to it. However instead of using lists, they are simply using divs. Not ideal. I am going to try and port this to fully compliant xhtml/css.

 

I will post my results here if I am successful.

 

Thanks again...

Posted
I know there are a lot of tables

 

That has to be the understatement of the year!

 

:D

 

Vger

Archived

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

×
×
  • Create New...