hey guys i am triying to save products in magento by getting from xml.But i couldnt find good way to update prices and qty fast.tried to :
public function productUpdate($productSkus = array(), $data = array(), $storeId = 1) {
$ids = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToFilter('sku', $productSkus)
->getAllIds();
Mage::getSingleton('catalog/product_action')->updateAttributes(
$ids, $data, $storeId
);
}
but not good enough and it gives me an error while updatting qty.It is not differen from $product->save(); I need fast way to upgrade this 2 attribute.Guys pls help.I am really bad situation in my company about my posiition. Thank you.