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);