Chris Smith Posted September 25, 2006 Posted September 25, 2006 Hi a really easy question here, How do get rid of "This product was added to our catalogue on" Thanks :thumbsup:
DeadDingo Posted September 25, 2006 Posted September 25, 2006 In \Includes\languages\English\ (or whatever language you are using) Product_info.php and categories.php comment out the lines define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.'); with // (or delete them) and that should do it. (back up the files first just incase)
Chris Smith Posted September 25, 2006 Author Posted September 25, 2006 In \Includes\languages\English\ (or whatever language you are using) Product_info.php and categories.php comment out the lines define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.'); with // (or delete them) and that should do it. (back up the files first just incase) Cheers :thumbsup:
241 Posted September 25, 2006 Posted September 25, 2006 It relates to this bit of code catalog/products_info.php 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 } ?> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Guest Posted September 27, 2006 Posted September 27, 2006 i want to remove the text "This product was added to our catalog on %s." In Includes\languages\English i comment out the line define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.'); but there isn't categories.php in Includes\languages\English so online there is still "TEXT_DATE_ADDED" which other file i must edit ?
Guest Posted September 27, 2006 Posted September 27, 2006 As per Steve's post, change this piece of code <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> to <td align="center" class="smallText"><?php /* echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); */ ?></td> That should sort it out and if you wish to restore the date added at a later date, you just have to uncomment it.
DeadDingo Posted September 27, 2006 Posted September 27, 2006 in catalog/product_info.php find <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> you can either delete it or change it to this <td align="center" class="smallText"><?php //echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> to blank it out [Edit] Too slow :oops: [/edit]
Recommended Posts
Archived
This topic is now archived and is closed to further replies.