Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

displaying products and catagories together?


cooperman435

Recommended Posts

Posted

Surly its simple to do but :

 

When I have a category with just sub categories in it then all is fine and all is displayed as I expect it to be (a list of the sub categories).

 

When I have a category (or sub category) with just products in it again all is displayed as I expect (a list of products)

 

 

BUT when I insert a category into a list of products (or a product into a list of sub categories) only the products are displayed in the main screen (but the sub category is on the side bar as part of the tree layout)

 

I cant find settings to alter but I just want the sub category to show up looking like it would normally which is the same as a product.

Posted

The page you are on is very involved which is probably why no one helped yet. I will try to help get you started with this EXAMPLE EXPLANATION

 

You will want to be in the section that starts...

if ($category_depth == 'nested') {

}

 

you might take the section ->

 

} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {

}

 

and make it a "module" then if your $category_depth == 'nested' has products include the new module

 

hope this helps.

 

p.s. have you thoroughly checked contributions for something that might work or do the job. Be sure to keep good back ups.

How do you know when you know what you want to do for the rest of your life?

  • 1 year later...
Posted

I dont know why but I just found this comment on my post by chance, I should have received an email but nope :-(

 

I assume the file your referring to is catagories.php ?

 

Its also occurred to me that as products are listed vertically as a list but sub categories are horizontally spread across the page they couldn't display together as it is currently anyway.

 

Im thinking that setting subs to display like products would at least allow them to be on the same page.

 

Ill admit that the above post doesn't make complete sense to me but Ill get my tech guy to have a look and see what he thinks :-)

 

Any more help or suggestions will still be very much appreciated too?

Archived

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

×
×
  • Create New...