Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Right Column Box To Product Info


Guest

Recommended Posts

Hi

 

Can anyone teach me how to change the script in column_right.php so that the box that I created will only show in the Product Info Page and nowhere else.

 

Ex. Product notification box only showed when at product detail page

 

Thank you

Link to comment
Share on other sites

You can add code such as this in your php to test the page. I have both tests as I do not know which works on your server:

if ( (strstr($_SERVER['PHP_SELF'],'product_info.php')) or (strstr($_SERVER['PHP_SELF'],'product_info.php')) )  {

 // do this

} else {

 // else do this

}

Link to comment
Share on other sites

Take two ...

if ( (strstr($_SERVER['PHP_SELF'],'product_info.php')) or (strstr($PHP_SELF,'product_info.php')) )  {

 // do this

} else {

 // else do this

}

 

Might be better if I had included two *different* tests :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...