1

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

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, privacy policy and cookie policy

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