Alex Rivera | Logout

Show product creation & last edit dates on Frontend in Magento

Asked 2009-05-26T10:52:36.007
9

I've seen the two attributes in the MySQL database at table catalog_product_entity

the fields are 'created_at' and 'updated_at'

How do I get them to show up on frontend?

Edit
Report

1 Answer

13

The attributed can simply be added using the getAttributeName() function, for instance, to get created_at, just add the following php script to the phtml page:

<?php echo $_product->getCreatedAt();?>

For updated_at, use:

<?php echo $_product->getUpdatedAt();?>
answered 2009-05-27T10:01:58.027

Your Answer