girlygirl Posted April 30, 2006 Posted April 30, 2006 Greetings, Is there someplace where I can comment out the coding that adds the date when a product was added to my site? I want to get rid of this sort of coding when I add new products: This product was added to our catalog on Wednesday 26 April, 2006 Thanks!
MoisesZaragoza Posted April 30, 2006 Posted April 30, 2006 include/Footer.php just delete or comment out <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> at the end of the day the code will be good
girlygirl Posted April 30, 2006 Author Posted April 30, 2006 Isn't that commenting out how many visitors to the site? When adding a new product to my site, I don't want it to show what date that particular product was added. Thanks!
MoisesZaragoza Posted April 30, 2006 Posted April 30, 2006 sorry for that at the end of the day the code will be good
MoisesZaragoza Posted April 30, 2006 Posted April 30, 2006 Ok look for <tr> <td align="center" class="smallText"> <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> at the end of the day the code will be good
girlygirl Posted April 30, 2006 Author Posted April 30, 2006 Ok look for <tr> <td align="center" class="smallText"> <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> Thanks very much! That would be the one. :-) Do you know what .php page I'd find that on and would I just be able to delete those lines?
choosealogin Posted April 30, 2006 Posted April 30, 2006 Thanks very much! That would be the one. :-) Do you know what .php page I'd find that on and would I just be able to delete those lines? It's on catalog/product_info.php The date added shows up on catalog/products_new.php also, but the code is different there. You should be able to delete the lines...just back it all up in case it doesn't work :blink:
girlygirl Posted April 30, 2006 Author Posted April 30, 2006 It's on catalog/product_info.php The date added shows up on catalog/products_new.php also, but the code is different there. You should be able to delete the lines...just back it all up in case it doesn't work :blink: Ahh, thanks for the info! I don't mind editing the products_info.php page but the other one is a little beyond me. I wouldn't know how to comment that one out and I'm assuming they'd both have to be changed? Also, if I did comment out something on the products_new.php page, would it also stop things from showing up on the main page of the site under "New Products for April" for example? http://www.girly-girl.ca/catalog/index.php
choosealogin Posted April 30, 2006 Posted April 30, 2006 Ahh, thanks for the info! I don't mind editing the products_info.php page but the other one is a little beyond me. I wouldn't know how to comment that one out and I'm assuming they'd both have to be changed? Also, if I did comment out something on the products_new.php page, would it also stop things from showing up on the main page of the site under "New Products for April" for example? http://www.girly-girl.ca/catalog/index.php You can get rid of the date on the product info page and leave the products new page alone if you like. If you eliminate the date from the products new page, it won't change the appearance of your "new products for April" on the main page. It would just get rid of the "Date Added: Sunday 30 April, 2006" on this page. It's not so bad editing the products new page, but I'll let some one else guide you on the details. Took me two tries, but I got rid of the "manufacturer" note under the date on mine :blush:
choosealogin Posted April 30, 2006 Posted April 30, 2006 It's not so scary if you back up the files :thumbsup:
girlygirl Posted April 30, 2006 Author Posted April 30, 2006 It's not so scary if you back up the files :thumbsup: Woohoo! You're the man! I got the "date added" removed from the pages. :-) Thanks Mark!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.