Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I remove the "This product was added to"


test11

Recommended Posts

Hello,

 

I have set up my shop, but I under the products description for my products, I have some text that says "This product was added to our catalog "

 

How can I remove this?

Open catalog\product_info.php and find the following line :

<?php

}

 

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

<tr>

<td align="center" class="smallText"><br><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

 

and comment out like that :

<?php

}

 

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

<tr>

<td align="center" class="smallText"><br><?php /*echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); */?></td>

</tr>

 

Hope it will help

 

John

Link to comment
Share on other sites

This is what my file says....

 

<?php

/*

$Id: product_info.php,v 1.2 2003/09/24 14:33:16 wilt Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_check = tep_db_fetch_array($product_check_query);

 

$content = CONTENT_PRODUCT_INFO;

$javascript = 'popup_window.js';

 

require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);

 

require(DIR_WS_INCLUDES . 'application_bottom.php');

?>

Link to comment
Share on other sites

In: catalog/

File: product_info.php

 

Search for and add html remarks around:

<!-- Remove This product was added to our catalog on... 
<tr>       
<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED,  
tep_date_long($product_info['products_date_added'])); ?></td>
</tr>
-->

Link to comment
Share on other sites

In catalog/product_info.php

 

Look at this code

 

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

}

?>*/

 

Don't forget to insert the right } on the line above the } else { or you will get a parse error.

 

You have to do it again in Admin if you don't want it showing up there either.

Link to comment
Share on other sites

Hi matt,

 

Your using templates, same setup as me. The file you need to edit is

 

\catalog\templates\content\product_info.tpl.php

 

Use Steven's solution (thanks steve) it was the only one that worked for me.

Link to comment
Share on other sites

  • 2 weeks later...
In: catalog/

File: product_info.php

 

Search for and add html remarks around:

<!-- Remove This product was added to our catalog on... 
<tr> ? ? ? 
<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, ?
tep_date_long($product_info['products_date_added'])); ?></td>
</tr>
-->

Thanks Steven. :)

Link to comment
Share on other sites

  • 3 years later...
<td align="center" class="smallText"><br><?php /*echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); */?></td>

</tr>

 

Hope it will help

 

John

 

 

Thanks for the fix! :D

I found that I had to do this on another similar line just below that also.

 

Stan V.

Link to comment
Share on other sites

  • 2 months later...

I tried to comment out on MS2.2, but it did not work? And I was not sure about the other post about adding html marks. I dont know what he ment add html marks or where it should be done. How ever if someone knows how to delete "This product was added to our catalog",please let me know..Thanks, much Jeff

Link to comment
Share on other sites

  • 1 month later...
In: catalog/

File: product_info.php

 

Search for and add html remarks around:

<!-- Remove This product was added to our catalog on... 
<tr>	   
<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED,  
tep_date_long($product_info['products_date_added'])); ?></td>
</tr>
-->

This one worked for me.

Thanks!

Link to comment
Share on other sites

  • 3 months later...
Thanks for the fix! :D

I found that I had to do this on another similar line just below that also.

 

Stan V.

Thanks! this worked for me too...

My code looks like this :

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

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

how to do if we have this code?

 

<?

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

?>

Link to comment
Share on other sites

  • 4 weeks later...

The easyest way to delete This product was added on, is to edit the product_info.php as stated by Brooke

 

Tools-Define Languages and select the product_info.php language file and edit out the text between the quote marks

 

or edited

 

catalog/includes/languages/english/product_info.php in your own editor same thing i know but i dont like using the admin area when coding sometimes the code doesnt upload correctly.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...