Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do i remove the product date?


wrangler

Recommended Posts

Posted

Hi people

I'd like to remove the "This product was added to our catalog on......" which is displayed under every product description.

I've looked through the attributes but couldn't find it anywhere as an option to disable it.

Oh, i might be blind here.. B)

 

Anyway, any ideas?

Thanks a lot

Posted

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

remove the else statement to leave

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

or remove the whole section if required. This can be done by backing up your file then removing the code or by commenting out

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

Oh and som'thing else...

 

How can i change the date that a product has been added, so the program will understand that it is new??

f.e. i have a product added on Nov.2005 and I'd like to change that date to today to present it as new.

 

Any ideas greatly appreciated

Posted

At present on a default setup this would need to be done via phpmyadmin and editing the date manually or via a sql statement.

 

It could be coded to the admin categories.php to have an input box similar to the date available box so that it can be set from the admin.

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

you can do it using easy populate too i think..

Archived

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

×
×
  • Create New...