Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to delete "This product was added to our catalog of time"


marcy.su

Recommended Posts

open your catalog>product_info.php and remove lines 188 to 201

 

 

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

}

Link to comment
Share on other sites

  • 4 weeks later...
open your catalog>product_info.php and remove lines 188 to 201

 

 

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

}

 

 

Is there another place/file this should be changed? I've looked in my product_info.php file but it doesn't have this code in it. Any other suggestions? Thanks!

Link to comment
Share on other sites

Is there another place/file this should be changed? I've looked in my product_info.php file but it doesn't have this code in it. Any other suggestions? Thanks!

 

if you're using a text editor like textpad (available for free at http://textpad.com/download/ ) that allows searching through multiple files, you can do a search for TEXT_DATE_ADDED. this will show up in a couple files found in your catalog/ directory, as well as a few in admin/ and includes/. the ones in your catalog/ directory are where you'd look to start removing that message.

 

since you are (probably) using a template, that's about the best help i can give you.

Link to comment
Share on other sites

hi, i'm running a template and was able to rid myself of this by doing the following:

 

in catalog>product_info.php

look for:

<?
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']));
?>

 

then comment out the echo like this:

 

<?
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']));*/
?>

 

worked for me, good luck.

Link to comment
Share on other sites

hi, i'm running a template and was able to rid myself of this by doing the following:

 

in catalog>product_info.php

look for:

<?
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']));
?>

 

then comment out the echo like this:

 

<?
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']));*/
?>

 

worked for me, good luck.

 

Thank you I was able to make the change! My product_info.php file was located in store/includes/theme directory

 

Thanks again for all the help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...