This is a discussion on How to get rid of "New Products For Month"?? within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I'm really not liking that box and how the heck do I get rid of it? I've been looking and ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I'm really not liking that box and how the heck do I get rid of it? I've been looking and can't figure out where to comment it out?? |
|
#2
| |||
| |||
| *bump* Help!? I installed a contrib that allows you to customize info boxes seperatly, but of course it does not control that box. I would be happy to just be able to get the background color of the header. I just don't like the way it lines up with the rest of the page. Anyone? |
|
#3
| |||
| |||
| not quite sure what you mean in your second post but if you want to get rid of the box just look in templates/content/index_default.php (assuming you're using an AAMAX version of oscommerce) and comment out the line <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> ie change to (note the //) <?php //include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> |
|
#4
| ||||
| ||||
| Quote:
<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> by change it to: <?php // include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> (note the '?>' on a new line) or <?php /* include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); */ ?> Good Luck |
|
#5
| |||
| |||
| hmm I know what you mean, but I find PHP recognises the closing ?> even on the end of a commented line.... jon |
|
#6
| ||||
| ||||
| Well spank me sam..... PHP I guess know that but accoring to what I have seen and code that I have used - it normally is not witten that way. I have allways seen '?>' pushed on to another line or use '/* ... */ ?>' I stand corrected then. Thanks. Another thing to add to my list.
__________________ JPF - osCMax Fourm Moderator Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
|
#7
| |||
| |||
| I think I only found by accident, and I don't know if it works on all versions and it's almost certainly bad coding practice, I guess other languages don't work like that. But PHP is very forgiving of things like that, for better or worse.... jon |
|
#8
| |||
| |||
| I have been busitng my brain trying to figure it out. The above posts did the trick. For the newbies (and I am not that so far from that), the files located inside the catalog/templates/content/ directory are index_nested.tpl.php and index_default.tpl.php I was making the mistake of using an HTML comment <!-- &nbsp; --> on the <TR></TR> sections, instead of the /* &nbsp; */ comment within the <?php include. . . . ?>. Thanks! Now on to bigger and better things . . . . |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove "QTPRO" for "Option Type Feature" | adam71o | osCMax v2 Customization/Mods | 3 | 01-10-2007 10:32 AM |
| Unlinking "Specials For" and "New Products Fo | bsa | osCMax v1.7 Discussion | 5 | 04-19-2004 11:29 AM |
| Font color on "Specials" and "New Products&qu | gheffron | osCommerce 2.2 Installation Help | 3 | 04-01-2004 02:40 AM |
| Removing price listing from "New Products For ..." | JGofGFS | osCommerce 2.2 Modification Help | 1 | 03-31-2004 11:34 AM |
| Need help displaying "New Products" on static html | dojen13 | osCommerce 2.2 Modification Help | 0 | 07-13-2003 06:58 AM |