Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $product = Mage::getModel('catalog/product')->loadByAttribute('sku', 'SOME_SKU');
  2. $attributes = $product->getAttributes();
  3. foreach ( $attributes as $attribute ) {
  4. $attribute->setPrice(20.00);
  5. $attribute->save();
  6. echo $attribute->getPrice(); // 20.00
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement