Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A page for each category


Guest

Recommended Posts

Posted

I tryed to serch the forum but dindt find the answer. Maybe I miss something or is my stupidity, who knows....

I saw in a lot of OSCOMMERCES that each category have a distinct central page. Example, when you open the main page the central portion of the site shows the categories like figures that you can click on. When you click on a categorie the central portion of the site showns figures of the subcategories.

How can I do that?

  • 4 weeks later...
Posted

I remember something about it in the catalog\index.php I had to do when the category has sub-categories and products it will go through the products and ignore the sub-categories.

 

search for this in that file:

 

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

 

after that maybe 50 lines below passing all the sort case statements you need to have categories names and description That is before this line

 

	  <td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td>

 

The code to display the categories is already there. You need to duplicate it before the product listing as well to cover the case of categories with products and sub-categories. And also search the contributions if something like this already exists.

Archived

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

×
×
  • Create New...