Solved

magento, timestamp product changes

Posted on 2014-10-14
4
198 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 24

Expert Comment

by:lenamtl
Comment Utility
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
Comment Utility
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 24

Accepted Solution

by:
lenamtl earned 500 total points
Comment Utility
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
Comment Utility
Thanks lenamtl,

I appreciate the help!

John
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now