Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Delete "This product was added on"


Chris Smith

Recommended Posts

Posted

In \Includes\languages\English\ (or whatever language you are using)

 

Product_info.php

and categories.php

 

 

comment out the lines

define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');

with // (or delete them) and that should do it.

 

(back up the files first just incase)

Posted
In \Includes\languages\English\ (or whatever language you are using)

 

Product_info.php

and categories.php

comment out the lines

define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');

with // (or delete them) and that should do it.

 

(back up the files first just incase)

 

Cheers :thumbsup:

Posted

It relates to this bit of code catalog/products_info.php

 

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

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

i want to remove the text "This product was added to our catalog on %s."

 

In Includes\languages\English

i comment out the line define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');

 

but there isn't categories.php in Includes\languages\English

so online there is still "TEXT_DATE_ADDED"

 

which other file i must edit ?

Posted

As per Steve's post, change this piece of code

 

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

 

to

 

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

 

That should sort it out and if you wish to restore the date added at a later date, you just have to uncomment it.

Posted

in catalog/product_info.php

 

find

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

 

you can either delete it or change it to this

 

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

 

to blank it out

 

[Edit] Too slow :oops: [/edit]

Archived

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

×
×
  • Create New...