Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

List of Categories


tmorton

Recommended Posts

Hi all,

I know this is really simple, but I want to make a navigation bar on the right. I want to get a list of all the categories, but am not sure how. For example, I want it to look like this:

 

-Seed:

> - Lettuce

> - Mustard

> - Flowers

 

I want the categories (lettuce, mustard, flowers etc) to be generated when the column_right.php script is run.

How can I do this?

 

Thanks, Taj

"My software never has bugs, it just develops random features."

Link to comment
Share on other sites

Delete all sub catagorys turn off catagory counts at my store in admin and you should get a nice clean list just change the catagory names and insert more if needed. (make a backup in case this is not what you want).

Link to comment
Share on other sites

Delete all sub catagorys turn off catagory counts at my store in admin and you should get a nice clean list just change the catagory names and insert more if needed. (make a backup in case this is not what you want).

 

Actually, I don't really mind the counts (and, in fact, I want them). What I really want to do is just make is to output the list of catigories with a "-" instead of creating a box.

Any ideas?

--Taj

"My software never has bugs, it just develops random features."

Link to comment
Share on other sites

Maybe you could try making the box colours the same as your back ground that might be an easy way. I think you do this in this style sheet in catologue. Unless you code PHP I wouldn't want to start hacking the code about. You could backup and try anyway. Good luck.

Link to comment
Share on other sites

Maybe you could try making the box colours the same as your back ground that might be an easy way. I think you do this in this style sheet in catologue. Unless you code PHP I wouldn't want to start hacking the code about. You could backup and try anyway. Good luck.

 

Well, I do code in PHP, but I was hoping that someone had some premade code for me ;-). I'm probably a time bomb waiting to explode... :bomb:

 

Thanks for the help, Taj

"My software never has bugs, it just develops random features."

Link to comment
Share on other sites

I've been trying to implement something similar. Referring to your example :

 

Seed:  

> - Lettuce  

> - Mustard  

> - Flowers

 

What I wanted to do was that if "Seed" was clicked, instead of the page displaying the sub-category options, it would display all items in the sub-categories (a list of lettuce, mustard and flowers) in the similar format of actually clicking Lettuce.

 

Any ideas on that?

Graeme Simms.

Link to comment
Share on other sites

Well, you could probably steal some of the code from the default.php code (where it is checked if cPath is passed). I'll post some details later.

--Taj

"My software never has bugs, it just develops random features."

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...