Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any possibility to get attribute data difference between model versions? I create observer for catalog_product_save_after action, and now i want to make some changes only if attribute product_versions has changed.

share|improve this question
up vote 3 down vote accepted

Try this:

$newValue = $product->getData('product_versions');
$oldValue = $product->getOrigData('product_versions');

Now check if the 2 values are different. If they are, do your magic.

share|improve this answer
Something similar here too – mbalparda Aug 5 '14 at 11:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.