Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

magento, timestamp product changes

Posted on 2014-10-14
4
Medium Priority
?
256 Views
Last Modified: 2016-03-02
Hello,

I am currently setting up a new store using Magento 1.9. I would like to have two automatic timestamps available in the catalog.

First, I would like to know the date the product was added

Second, I would like the date saved whenever the product is saved/updated.

Third, I would like this visible when editing the product.

Any help with this would be greatly appreciated.

John
0
Comment
Question by:jpldpd
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:lenamtl
ID: 40382079
Both timestamp are already in the database

In the magento template to show update date and time
echo date("Y-m-d", $_product->getUpdatedAt());
0
 

Author Comment

by:jpldpd
ID: 40386451
Thanks lenamtl,

Would you be able to explain a bit more detail? Which templates are actually used? I would like this to show up in the product grid under manage catalog > products. I know I can use a plugin to add additional attributes but this is not an attribute.

Thanks,
John
0
 
LVL 27

Accepted Solution

by:
lenamtl earned 2000 total points
ID: 40392166
Hi,
 there is an extension that seem to do what you need
http://amasty.com/extended-product-grid-with-editor.html


The dates are already saved in the database, what you need is to display them where you want. Magento is using a MVC and you need to understand how it's work it's not very easy. You may need a dev for this depending of your skills.

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/admin/changing_the_adminhtml_template
0
 

Author Comment

by:jpldpd
ID: 40396685
Thanks lenamtl,

I appreciate the help!

John
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question