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??
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 ...
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??
*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?
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); ?>
I think you mean comment out:Originally Posted by jonthewebb
<?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
hmm
I know what you mean, but I find PHP recognises the closing ?> even on the end of a commented line....
jon
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 - To contact, post on the forum or click here
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!
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
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 . . . .
Bookmarks