Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting 1st level sub categories in their own infobox?


yourguitarhero

Recommended Posts

Posted

Hi, new here - first time development with OSCommerce.

Things have been OK so far, found searching the board to be very informative.

 

However, there is one thing I can't figure out on my own and from searching a couple of people have asked but no-one has replied.

 

In my shop I have 4 first level sub-catgeories:

 

Men's clothing

Woman's clothing

Kids clothing

Gift sets

 

I would like to have 4 infoboxes to replace the categories info box, one for each of these sub categories. I know how to make the new infoboxes and add them to the column. I was planning on basing each infobox on a modified categories box. The part I don't understand is how to alter the code that reads the categories from the database and displays them so it only displays what is under a particular first level sub-category and not all of the categories.

 

It doesn't have to be dynamic as far as picking out the first level sub-catgeories, but from there down I'd like it to be dynamic.

 

Can anyone help?

 

Thanks in advance

Craig.

Posted

I saw that done yesterday in a book by Monika in Germany. It was in a sample chapter of Deep Inside osCommerce: The Cookbook. The sample chapter is available online as a teaser for the book. Search for it and you will find it, or maybe Monika can help.

  • 2 months later...
Posted
Sorry for the external link Read the sample chapter. It it there

 

Deep inside osCommerce

 

Hi - thanks for that and got it working.

 

However, I have a further problem I can't get my head around.

 

I am using gifs for the categories boxes' headings, the gifs are a design plus text (such as Women's Clothing):

 

table_women.gif

 

The file name for this is: table_women.gif

 

I'd like to dynamically add these header images using a format like: table_[catname].gif.

not the neatest solution, but not too bad using a template.

 

However, Monika's code is a little over my head and I am unsure on which value is the main category title. I can add it into the http source once I know that - somthing like this:

 

<IMG SRC="images/boxes/table_<?php print $cat_name ?>.gif" WIDTH=173 HEIGHT=20></TD>

 

Can anyone help?

Archived

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

×
×
  • Create New...