3
Magento:製品属性を更新する最速の方法
大量の属性を更新するための最速かつ信頼性の高い方法を探しています。以下は認識している方法ですが、どちらに行くべきかわかりません。 $store_id = 0; Mage::getSingleton('catalog/product_action')->updateAttributes( array($product_id), array('attribute_code' => $attribute_code), $store_id ); または $product->setData($attribute_code, 1234); $product->getResource()->saveAttribute($product, $attribute_code);