Skip to content

Instantly share code, notes, and snippets.

@code-poel
Created March 16, 2016 21:27
Show Gist options
  • Save code-poel/c133e9c6768c082d08a6 to your computer and use it in GitHub Desktop.
Save code-poel/c133e9c6768c082d08a6 to your computer and use it in GitHub Desktop.
How to update attributes in bulk.
<?php
// http://magento.stackexchange.com/questions/43917/fastest-way-to-update-an-attribute-in-all-products
$product->setData('something', true);
$product->getResource()->saveAttribute($product, 'something');
// OR
\Mage_Catalog_Model_Resource_Product_Action::updateAttributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment