I\'m working on a script that will create or update products in my catalog. The script works fine when the product needs to be created, but it fails when the product alr
Easy with Magento API, also can use methods....
example
$data = array('qty'=>1, 'is_in_stock'=>1) $stockModel = new Mage_CatalogInventory_Model_Stock_Item_Api; $stockModel->update($product_id, $data);
Also can set Admin mode
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);