Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Comment out date product is added?


girlygirl

Recommended Posts

Posted

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!

Posted

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

Posted

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!

Posted

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

Posted
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?

Posted
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:

Posted
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

Posted
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:

Posted
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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...