krislyn5559 Posted November 23, 2007 Share Posted November 23, 2007 I was wondering my client doesn't want you to see the date added of a product is there an easy way of doing this ? Thanks in advance Link to comment Share on other sites More sharing options...
DejaVu Posted November 23, 2007 Share Posted November 23, 2007 Open /catalog/product_info.php Search for <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> And comment it out or remove it. That ought to do it. :) Link to comment Share on other sites More sharing options...
krislyn5559 Posted November 23, 2007 Author Share Posted November 23, 2007 Open /catalog/product_info.php Search for <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> And comment it out or remove it. That ought to do it. :) Thanks I just tried it and it works great taking out the date added from the product listing any idea if it is possible to remove the date added text from the new products listing as well ? Thanks Link to comment Share on other sites More sharing options...
DejaVu Posted November 23, 2007 Share Posted November 23, 2007 <br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . ' in /catalog/products_new.php Link to comment Share on other sites More sharing options...
mom2ashley Posted November 25, 2007 Share Posted November 25, 2007 <br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . ' in /catalog/products_new.php I just wanted to say that this was what I was looking for and it worked! I managed to remove the date added and manufacture lines in the New Products page. Thanks! Link to comment Share on other sites More sharing options...
mom2ashley Posted November 25, 2007 Share Posted November 25, 2007 <br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . ' in /catalog/products_new.php I just wanted to say that this was what I was looking for and it worked! I managed to remove the date added and manufacture lines in the New Products page. Thanks! Link to comment Share on other sites More sharing options...
krislyn5559 Posted November 26, 2007 Author Share Posted November 26, 2007 I just wanted to say that this was what I was looking for and it worked! I managed to remove the date added and manufacture lines in the New Products page. Thanks! When I tried it it removed the text "this product was added" but still showed the actual date what did you do to remove it all ? Link to comment Share on other sites More sharing options...
krislyn5559 Posted November 27, 2007 Author Share Posted November 27, 2007 bump Link to comment Share on other sites More sharing options...
DejaVu Posted November 27, 2007 Share Posted November 27, 2007 Code explaination - <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> 'echo sprintf' means print the following to the page... TEXT_DATE_ADDED refers to 'This product was added to our catalog on' in Language file 'product_info.php' (& 'Date Added:' in new_products.php). tep_date_long($product_info['products_date_added']) refers to the actual date being pulled from MySQL database. This statements removes the entire statement including the date. In order to leave just the date behind the statement would have to look like this - <?php echo sprintf(tep_date_long($product_info['products_date_added']); ?> Link to comment Share on other sites More sharing options...
krislyn5559 Posted November 27, 2007 Author Share Posted November 27, 2007 Code explaination - <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> 'echo sprintf' means print the following to the page... TEXT_DATE_ADDED refers to 'This product was added to our catalog on' in Language file 'product_info.php' (& 'Date Added:' in new_products.php). tep_date_long($product_info['products_date_added']) refers to the actual date being pulled from MySQL database. This statements removes the entire statement including the date. In order to leave just the date behind the statement would have to look like this - <?php echo sprintf(tep_date_long($product_info['products_date_added']); ?> Thanks so much I was able to remove it all now ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.