Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing date added ?


krislyn5559

Recommended Posts

Open /catalog/product_info.php

 

Search for

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

And comment it out or remove it.

 

That ought to do it. :)

 

Thanks I just tried it and it works great taking out the date added from the product listing any idea if it is possible to remove the date added text from the new products listing as well ?

 

Thanks

Link to comment
Share on other sites

<br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '

 

in /catalog/products_new.php

I just wanted to say that this was what I was looking for and it worked! I managed to remove the date added and manufacture lines in the New Products page. Thanks!

Link to comment
Share on other sites

<br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '

 

in /catalog/products_new.php

I just wanted to say that this was what I was looking for and it worked! I managed to remove the date added and manufacture lines in the New Products page. Thanks!

Link to comment
Share on other sites

I just wanted to say that this was what I was looking for and it worked! I managed to remove the date added and manufacture lines in the New Products page. Thanks!

 

When I tried it it removed the text "this product was added" but still showed the actual date what did you do to remove it all ?

Link to comment
Share on other sites

Code explaination -

 

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

'echo sprintf' means print the following to the page...

 

TEXT_DATE_ADDED refers to 'This product was added to our catalog on' in Language file 'product_info.php' (& 'Date Added:' in new_products.php).

 

tep_date_long($product_info['products_date_added']) refers to the actual date being pulled from MySQL database.

 

This statements removes the entire statement including the date.

 

In order to leave just the date behind the statement would have to look like this -

<?php echo sprintf(tep_date_long($product_info['products_date_added']); ?>

Link to comment
Share on other sites

Code explaination -

 

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

'echo sprintf' means print the following to the page...

 

TEXT_DATE_ADDED refers to 'This product was added to our catalog on' in Language file 'product_info.php' (& 'Date Added:' in new_products.php).

 

tep_date_long($product_info['products_date_added']) refers to the actual date being pulled from MySQL database.

 

This statements removes the entire statement including the date.

 

In order to leave just the date behind the statement would have to look like this -

<?php echo sprintf(tep_date_long($product_info['products_date_added']); ?>

Thanks so much I was able to remove it all now !

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...