Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index.php If category pg then print


Guest

Recommended Posts

Posted

Hi Guys,

 

I understand that the index.php for osc prints out the code for:

the home page

If we are browsing a category

If we have selected a product.

 

Is there a way on the index.php to do an if statement so we know if the user is viewing the page as the home page, a category page or a product page.

 

Essentially I want a little more control over the framework/navigation of the header and coloum files.

 

ie. if this is the home page then use this header.php else use header2.php

 

Hope you can help, thanks,

Ally

Posted

there is already control over it. Examine the $category_depth variable in index.php for the different cases.

Archived

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

×
×
  • Create New...