osCmax v2.5 User Manual
Results 1 to 8 of 8

How to get rid of "New Products For Month"??

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 ...

      
  1. #1
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default How to get rid of "New Products For Month"??

    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. #2
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    *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. #3
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    Default

    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. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    Quote Originally Posted by jonthewebb
    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:
    <?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. #5
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    Default

    hmm

    I know what you mean, but I find PHP recognises the closing ?> even on the end of a commented line....


    jon

  6. #6
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    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!

  7. #7
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    Default




    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. #8
    Member
    Join Date
    Oct 2003
    Location
    The Antelope Valley in SoCal
    Posts
    47
    Rep Power
    0


    Default Upcoming Products & What's New for . . . getting rid of

    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 <!--   --> on the <TR></TR> sections, instead of the /*   */ comment within the <?php include. . . . ?>.

    Thanks! Now on to bigger and better things . . . .

Similar Threads

  1. Remove "QTPRO" for "Option Type Feature"
    By adam71o in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 01-10-2007, 09:32 AM
  2. Unlinking "Specials For" and "New Products Fo
    By bsa in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 04-19-2004, 11:29 AM
  3. Font color on "Specials" and "New Products&qu
    By gheffron in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 04-01-2004, 01:40 AM
  4. Removing price listing from "New Products For ..."
    By JGofGFS in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-31-2004, 10:34 AM
  5. Need help displaying "New Products" on static html
    By dojen13 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 07-13-2003, 06:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •