Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categorie Info Box Displau


mark27uk3

Recommended Posts

Hi All,

 

In a nutshell I only want the category box to show in 2 instances

 

a. on the product info page

 

b. in the index page but only when displaying the product listing i.e. index.php?cPath=24

 

Obviously this is the code for displaying only on the product info page

 

  if (basename($PHP_SELF) == FILENAME_PRODUCT_INFO)
 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }

 

Now to get the category infobox to only display on the index page when displaying the product listing I have tried

 

  if (basename($PHP_SELF) == 'index.php?cPath=24')
 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }

 

Which obviously does not work, would someone please be able to make this obvious (I think it is a minor change, but what lol)

 

Many Thanks

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

  if (basename($PHP_SELF) == FILENAME_DEFAULT && $cPath== '24')
 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }

 

Thank you Manfred for clearing my brain block :thumbsup:

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...