1

How to add last modified product date to product page header and last modified category date to category page header?

1 Answer 1

0

Add Below code on your header.phtml file.

<?php if(Mage::registry('current_product')): 
    echo Mage::registry('current_product')->getUpdatedAt(); 
endif; 
if(Mage::registry('current_category')):
    echo Mage::registry('current_category')->getUpdatedAt();
endif; 
?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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