Guest User

Untitled

a guest
Mar 6th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $sku = '12345';
  2. $storeId = 2;
  3. $metaTitle = 'Updated meta title';
  4. $id = Mage::getSingleton('catalog/product')->getIdBySku($sku);
  5. if ($id) {
  6. Mage::getSingleton('catalog/product_action')->updateAttributes(
  7. array($id),
  8. array('meta_title' => $metaTitle),
  9. $storeId
  10. );
  11. }
  12.  
  13. sku _store meta_title
  14. sku1 Default meta title
  15. store 1 Store 1 meta title
  16. sku2 Default meta title
  17. store 2 Store 2 meta title
Add Comment
Please, Sign In to add comment