Results 1 to 9 of 9

Remove Product Added Date?

This is a discussion on Remove Product Added Date? within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Is there a way to remove the following line that appears at the bottom of every product page? (osCMax 2.0.3/2.0.4) ...

      
  1. #1
    Member
    Join Date
    Aug 2009
    Posts
    65
    Rep Power
    3


    Default Remove Product Added Date?

    Is there a way to remove the following line that appears at the bottom of every product page? (osCMax 2.0.3/2.0.4)

    "This product was added to our catalog on Monday 10 August, 2009."

    I am hoping it is a simple config option, but I can't find it.

    Thanks...
    GEORGE

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Lightbulb Re: Remove Product Added Date?

    Ain't that an annoying line?

    Look in templates/yourtemplate/content/product_info.tpl.php

    PHP Code:
    <?php
        
    } else {
    ?>
          <tr>
    //        <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDEDtep_date_long($product_info['products_date_added'])); ?></td>
          </tr>
    <?php
        
    }
    ?>
    Last edited by ridexbuilder; 03-28-2010 at 10:16 AM. Reason: more specifics
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Member
    Join Date
    Aug 2009
    Posts
    65
    Rep Power
    3


    Default Re: Remove Product Added Date?

    Thanks ridexbuilder...

    Actually, I couldn't get your double-strike to work on the specific line of code, perhaps because it is outside the php tags, but the following did work:

    <?php
    } else {
    /*
    ?>
    <tr>
    <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
    </tr>
    <?php
    */
    }
    ?>


    It does eliminate the date added line... Does that make sense? Or do I need to clean something up?

    Thanks...
    GEORGE

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    47


    Smile Re: Remove Product Added Date?

    You are not misssing anything.

    // Comments out code in php

    /* */ :works in css

    <!-- code here //--> works in html

    Regards,
    pgmarshall
    _______________________________

  5. #5
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    2,944
    Rep Power
    34


    Thumbs up Re: Remove Product Added Date?

    That's fine - I had considered just removing the line but wanted to identify it.
    Remember that Thanks button.
    Last edited by ridexbuilder; 03-28-2010 at 01:23 PM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  6. #6
    Member
    Join Date
    Aug 2009
    Posts
    65
    Rep Power
    3


    Default Re: Remove Product Added Date?

    Thanks... and yes - I usually try to comment-out the original code and add the new code rather than just delete it, so I always have a good reference if something goes wrong.

    Thanks to you both!

  7. #7
    New Member
    Join Date
    May 2010
    Posts
    29
    Rep Power
    0


    Default Re: Remove Product Added Date?

    Hi,
    I tried to remove the code from products_new.tpl.php line 116
    PHP Code:
    tep_href_link(FILENAME_PRODUCT_INFO'products_id=' $products_new[$x]['products_id']) . '"><strong><u>' $products_new[$x]['products_name'] . '</u></strong></a><br>Model:'$products_new[$x]['products_model'] . '<br>' TEXT_DATE_ADDED ' ' tep_date_long($products_new[$x]['products_date_added']) 
    . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new[$x]['products_id']) . '"><strong><u>' . $products_new[$x]['products_name'] . '</u></strong></a><br>Model:'. $products_new[$x]['products_model'] . '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new[$x]['products_date_added'])


    If I edited anything from there I would get a blank page. I tried to just remove the date_added references which I assumed would give me a blank area with no text but instead I got a blank page where the products were.

    I haven't tried the previously posted advice yet on the products page but that looks more straightforward than this.

    Anyone got the date added removed from the new products page?

    Thanks
    Last edited by tdwuk; 09-27-2010 at 08:14 AM. Reason: trying to show code properly

  8. #8
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    47


    Smile Re: Remove Product Added Date?

    Blank page = php error. (normally)

    Replace:
    Code:
    . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new[$x]['products_id']) . '"><strong><u>' . $products_new[$x]['products_name'] . '</u></strong></a><br>Model:'. $products_new[$x]['products_model'] . '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new[$x]['products_date_added'])
    With:

    Code:
    . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new[$x]['products_id']) . '"><strong><u>' . $products_new[$x]['products_name'] . '</u></strong></a><br>Model:'. $products_new[$x]['products_model']
    You need to watch the .'s when editting PHP scripting ...

    Regards,
    pgmarshall
    _______________________________

  9. #9
    New Member
    Join Date
    May 2010
    Posts
    29
    Rep Power
    0


    Default Re: Remove Product Added Date?

    Thanks I will try that.

Similar Threads

  1. Date Added Mod
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-04-2007, 05:53 AM
  2. Remove line "This product was added to our catalog on &
    By torweb in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-29-2006, 11:14 AM
  3. This Product Was Added Date
    By joanstead in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 02-18-2006, 12:46 AM
  4. Remove "This product was added" date
    By kenlyle in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 11-14-2005, 11:48 AM
  5. How to remove date of birth from registration???
    By stando in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 07-29-2004, 09:10 PM

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
  •