Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display Categories On Main Site


Neith

Recommended Posts

Do you mean you have the catalog in a /catalog directory and want to show the catagories one directory up? If so, you will need to insert images or whatever and link to the catagories from index.html that you put together yourself.

Link to comment
Share on other sites

I was thinking more along the lines of having an include that pulls the categories from the database and displays them. I was hoping there'd be a contribution or something that already does this. I want to be able to display the catagories list on all pages of my site, not just the shopping cart side.

Link to comment
Share on other sites

Nevermind. I've decided to just query the `categories` table and pull the rows that have 'parent_id' set to 0. Then fetch the categories_name from `categories_description`and link it to /catalog/index.php?cPath=id

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...