netley Posted September 1, 2008 Posted September 1, 2008 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,
augustoacc Posted September 2, 2008 Posted September 2, 2008 Go to addons.oscommercer and seach for "Define Mainpage". There's a module overthere.
netley Posted September 2, 2008 Author Posted September 2, 2008 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,
Guest Posted September 2, 2008 Posted September 2, 2008 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,
Guest Posted September 2, 2008 Posted September 2, 2008 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.