Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6857811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:04:37+00:00 2026-05-27T02:04:37+00:00

Situation is: Admin logs in to system and he changes product somehow. For example:

  • 0

Situation is:

Admin logs in to system and he changes product somehow.

For example:

Sets qty to 10
Adds 2 images
Changes description

Is there any way to track these changes? Well I mean exactly track WHAT and HOW admin changed?

I use Magento CE 1.6

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:04:38+00:00Added an answer on May 27, 2026 at 2:04 am

    You can find the unaltered data through an object’s getOrigData() method. A good time to get the object is through it’s save_before event, so create an observer for the catalog_product_save_before event. The observer might contain the following:

    public function onCatalogProductSaveBefore($observer)
    {
      $product = $observer->getProduct();
      if ($product->hasDataChanges()) {
        $newValues = array_diff_assoc($product->getData(), $product->getOrigData());
        $oldValues = array_diff_assoc($product->getOrigData(), $product->getData());
        $added     = array_diff_key($product->getData(), $product->getOrigData());
        $unset     = array_diff_key($product->getOrigData(), $product->getData());
      }
    }
    

    Note that $newValues will include all of $added and existing attributes that have had their value changed. Ditto for $oldValues and $unset.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly unique situation with Asp.Net. An admin user must create any
Lets consider the following situation. There is products_controller which can be accessed from Admin
I'm thinking of a situation where an administrator makes some changes to another user
Hey guys i'm working on admin module for my project. When a person logs-in,
Here's my situation... I'm writing a .Net/C# security system (authorization and authentication) for a
Here is my situation. I have the following tables: Product , Product Attribute ,
Consider this situation where we have one product Laptop adapter and its stock as
Situation right now: I've got a live-system and its running very well. I DO
I am developing a web application where there are few roles like Admin,Reporter,Manager,Customer.Agent.Based on
is there a way i can let the admin users of my site manage

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.