test11 Posted January 6, 2004 Share Posted January 6, 2004 Hello, I have set up my shop, but I under the products description for my products, I have some text that says "This product was added to our catalog " How can I remove this? Link to comment Share on other sites More sharing options...
dragser Posted January 6, 2004 Share Posted January 6, 2004 Hello, I have set up my shop, but I under the products description for my products, I have some text that says "This product was added to our catalog " How can I remove this? Open catalog\product_info.php and find the following line : <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><br><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> and comment out like that : <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><br><?php /*echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); */?></td> </tr> Hope it will help John Link to comment Share on other sites More sharing options...
test11 Posted January 8, 2004 Author Share Posted January 8, 2004 This is what my file says.... <?php /* $Id: product_info.php,v 1.2 2003/09/24 14:33:16 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); $content = CONTENT_PRODUCT_INFO; $javascript = 'popup_window.js'; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
1quicksi Posted January 8, 2004 Share Posted January 8, 2004 In: catalog/ File: product_info.php Search for and add html remarks around: <!-- Remove This product was added to our catalog on... <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> --> knowledge base | Contributions | Search Link to comment Share on other sites More sharing options...
bloodshoteyes Posted January 8, 2004 Share Posted January 8, 2004 In catalog/product_info.php Look at this code if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> } /*<?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 } ?>*/ Don't forget to insert the right } on the line above the } else { or you will get a parse error. You have to do it again in Admin if you don't want it showing up there either. Link to comment Share on other sites More sharing options...
rival Posted January 12, 2004 Share Posted January 12, 2004 Hi matt, Your using templates, same setup as me. The file you need to edit is \catalog\templates\content\product_info.tpl.php Use Steven's solution (thanks steve) it was the only one that worked for me. Link to comment Share on other sites More sharing options...
Tuan Le Posted January 23, 2004 Share Posted January 23, 2004 In: catalog/File: product_info.php Search for and add html remarks around: <!-- Remove This product was added to our catalog on... <tr> ? ? ? <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, ? tep_date_long($product_info['products_date_added'])); ?></td> </tr> --> Thanks Steven. :) Link to comment Share on other sites More sharing options...
ManFromMars Posted March 17, 2007 Share Posted March 17, 2007 <td align="center" class="smallText"><br><?php /*echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); */?></td> </tr> Hope it will help John Thanks for the fix! :D I found that I had to do this on another similar line just below that also. Stan V. Link to comment Share on other sites More sharing options...
Guest Posted June 14, 2007 Share Posted June 14, 2007 I tried to comment out on MS2.2, but it did not work? And I was not sure about the other post about adding html marks. I dont know what he ment add html marks or where it should be done. How ever if someone knows how to delete "This product was added to our catalog",please let me know..Thanks, much Jeff Link to comment Share on other sites More sharing options...
Guest Posted July 20, 2007 Share Posted July 20, 2007 In: catalog/File: product_info.php Search for and add html remarks around: <!-- Remove This product was added to our catalog on... <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> --> This one worked for me. Thanks! Link to comment Share on other sites More sharing options...
mom2ashley Posted November 3, 2007 Share Posted November 3, 2007 Thanks for the fix! :D I found that I had to do this on another similar line just below that also. Stan V. Thanks! this worked for me too... My code looks like this : <tr> <td align="center" class="smallText"><?php /*echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); */?></td> </tr> <?php } else { ?> <tr> <td align="center" class="smallText"><?php /*echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); */?></td> </tr> Link to comment Share on other sites More sharing options...
Guest Posted January 21, 2008 Share Posted January 21, 2008 great mod thanks :D Link to comment Share on other sites More sharing options...
webb_worx Posted January 23, 2008 Share Posted January 23, 2008 This just worked for me you can go to Tools-Define Languages and select the product_info.php language file and edit out the text between the quote marks. :thumbsup: Link to comment Share on other sites More sharing options...
litews Posted March 11, 2008 Share Posted March 11, 2008 how to do if we have this code? <? if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); else echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> Link to comment Share on other sites More sharing options...
scorp Posted April 8, 2008 Share Posted April 8, 2008 The easyest way to delete This product was added on, is to edit the product_info.php as stated by Brooke Tools-Define Languages and select the product_info.php language file and edit out the text between the quote marks or edited catalog/includes/languages/english/product_info.php in your own editor same thing i know but i dont like using the admin area when coding sometimes the code doesnt upload correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.