Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $product = Mage::getModel('catalog/product')->loadByAttribute('sku', 'SOME_SKU');
- $attributes = $product->getAttributes();
- foreach ( $attributes as $attribute ) {
- $attribute->setPrice(20.00);
- $attribute->save();
- echo $attribute->getPrice(); // 20.00
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement