Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New products - front page only....


netley

Recommended Posts

Posted

Hi,

 

I have turned my new products infobox into a featured products box, which i only want to display on the front page.

 

What do i need to change to acheive this?

 

Thanks,

Posted

Thanks for the suggestion, but the 'define mainpage' addon isn't what i am looking for.

 

I did find this addon - http://addons.oscommerce.com/info/2434

 

but it didn't work properly, don't know if that is cause i am using oscommerce-2.2rc2a and this addon was written back in 2004/05.

 

Anyway i'm really desperate not to have any infobox show up at the bottom of my categories page, any ideas how to code this will be greatly appreciated. the code from the above addon goes:

 

<td><?php

 

if ($cPath == ''){

 

include(DIR_WS_MODULES . FILENAME_FEATURED);

 

}

else

{

include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);

}?></td>

 

Which seems to be on the right track, what do i know. I'm no coding wizard....

 

I'm sure others have had the same idea and resulting problem, so the answer is out there somewhere. I'm sure.

 

Thanks,

Posted

find the include in the relevant files and comment out the <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> area.

 

Hi,

 

I have turned my new products infobox into a featured products box, which i only want to display on the front page.

 

What do i need to change to acheive this?

 

Thanks,

Posted

You will have to something with the if cpath statement... it needs to say something like

 

<td><?php

 

if (!isset($cPath){

 

include(DIR_WS_MODULES . FILENAME_FEATURED);

 

}

else

{

include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);

}?></td>

 

 

 

try is, see what it says

Archived

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

×
×
  • Create New...