How it is possible to copy all the characteristics below massively?

  • title -> meta title
  • title -> meta keywords
  • description -> meta description
  • Could it solve your problem?
    – sv3n
    Commented Jan 23, 2018 at 18:57

1 Answer 1


To set meta information on the fly (w/o save to product) you can use this ... It sets product name to meta title/keywords and description to meta description:


<?xml version="1.0" encoding="UTF-8"?>


public function setMetaData(Varien_Event_Observer $observer)
    /* @var $product Mage_Catalog_Model_Product */
    $product = $observer->getProduct();

    $title = $product->getMetaTitle() ? $product->getMetaTitle() : $product->getName();
    $description = $product->getMetaDescription() ? $product->getMetaDescription() : $product->getDescription();
    $description = strip_tags($description);


You can also save this meta information to DB, but i use this (modified) on my own to still be able to filter products w/o meta data and set them manually later.

If you want it saved to product data, you can replace catalog_controller_product_view with catalog_product_save_before event.

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.