Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SITE IS LIVE PLEASE HELP


tec

Recommended Posts

hi everyone, i have a problem on a live site...

 

I am trying to show an infobox on the index.php page only,

 

all is well only problem is that it is showing on the info pages...again this site is live and the box is not supposed to be showing on teh info page...its the rotating animal slippers you see on the left side

 

monsterslippers.co.uk

 

here is my code from my column_left file

 

// bof infobox on index only

if (isset($HTTP_GET_VARS['products_id'])) {

} else {

if (isset($cPath) && tep_not_null($cPath)) {

} else {

include(DIR_WS_BOXES . 'animals.php');

}

}

//eof infobox on index only

Link to comment
Share on other sites

I am trying to show an infobox on the index.php page only,

 

all is well only problem is that it is showing on the info pages...again this site is live and the box is not supposed to be showing on teh info page...its the rotating animal slippers you see on the left side

 

monsterslippers.co.uk

 

here is my code from my column_left file

 

// bof infobox on index only

if (isset($HTTP_GET_VARS['products_id'])) {

} else {

if (isset($cPath) && tep_not_null($cPath)) {

} else {

include(DIR_WS_BOXES . 'animals.php');

}

}

//eof infobox on index only

If you look at includes/column_right.php where it says:

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

I would feel your code should read:

if (basename($PHP_SELF) == FILENAME_DEFAULT) include(DIR_WS_BOXES . 'animals.php');

Haven't tried it though.

Link to comment
Share on other sites

will that make it show on all pages though? i just want it to show on the main index page..

 

I have been able to hide it in the category pages, but not the information pages

Link to comment
Share on other sites

will that make it show on all pages though? i just want it to show on the main index page..

 

I have been able to hide it in the category pages, but not the information pages

I guess you would have to change it then to:

if ((basename($PHP_SELF) == FILENAME_DEFAULT) && !isset($cPath)) {
include(DIR_WS_BOXES . 'animals.php');
}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...