Sign up ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

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

1 Answer 1

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.