Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change index page


Guest

Recommended Posts

Posted

Hi

 

I am looking to change the index page(home), depending on the degree of dificulty.

What I am wanting to do is to have the right hand column not show on the index page, but be present on all other pages., Can someonw tell me a) if this is possible, B) and whats required to aceive this. The other alternative is to have the right hand column showing on all pages with the top of the column on the index page being say, 280px from the breadcrum (line)

 

Any thoughts or suggestions would be appreciated.

 

Many thans

Grandpa

Posted

<?php if (basename($_SERVER['PHP_SELF']) !== FILENAME_DEFAULT){

 

echo "not showing in index page, but be present on all other pages";

 

} ?>

Posted

Hi

 

Many thanks for that, but I have no idea what to do with the code. Where do I put it.

 

 

Many thanks

Grandpa

Posted

Hi

 

Just a note re the above request. I am using Oscommerce 2.3.3.4

 

 

 

Cheers

Grandpa

Posted

index.php file find require(DIR_WS_INCLUDES . 'column_right.php'); and change to:

 

<?php if (basename($_SERVER['PHP_SELF']) !== FILENAME_DEFAULT){

require(DIR_WS_INCLUDES . 'column_right.php');

} ?>

 

same on product_info.php.

 

if you use in includes/header.php file it's better for e.g. logo or .....

 


<?php if (basename($_SERVER['PHP_SELF']) !== FILENAME_DEFAULT){

echo "<img border="0" src="images/logo.gif" />"

} ?>

 

play with code and you see nice things...

Archived

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

×
×
  • Create New...