Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add box on top page only


RyanSmith

Recommended Posts

Hello,

 

I need to add a custom box to the entry page (index.php) only. Whats the best manner to see if there on the default home page?

 

Thanks in advance.

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Link to comment
Share on other sites

Hello,

 

I need to add a custom box to the entry page (index.php) only.  Whats the best manner to see if there on the default home page?

 

Thanks in advance.

 

 

Well just to let anyone know how this is done, this is what I came up with:

 

$s = substr($HTTP_SERVER_VARS['PHP_SELF'], -9);

if ($s == 'index.php' && !isset($HTTP_GET_VARS['camp']) && !isset($HTTP_GET_VARS['cPath'])) {

require(DIR_WS_BOXES . 'apparel_links.php');

} else {

require(DIR_WS_BOXES . 'fast_links.php');

}

 

$HTTP_GET_VARS['camp'] is a custom feature that I had implemented. Fast links and apparel_links are custom boxes that replace the standard categories box. If someone has a more elegant way of doing this, I would love to know.

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...