Its not that bad, all you have to do is get Stock Object, update quantity and save again along with product: $_product = Mage::getModel(‘catalog/product’)->loadByAttribute(‘sku’, $SKU); $qty = 12; […]
Quick tip: Not found bundle:com.jcraft.jzlib in NetBeans 8.0.1
If you experience errors like: Not found bundle:com.jcraft.jzlib when starting NetBeans 8.0.1 just delete cache folder which is located at: /Users/jdoe/Library/Caches/NetBeans/ where jdoe is your username
Quick tip: using git with multiple ssh keys
Probably you are using git. And probably a day when you will add another repo is close. But standard git behavior is to use key located at ~/.ssh/id_rsa. […]
Quick tip: writing files in node.js
The quick and dirty way is: var fs = require(‘fs’); fs.writeFile(“/tmp/test”, “Hey there!”, function(err) { if(err) { console.log(err); } else { console.log(“The file was saved!”); } }); but […]
Quick tip: Conditions for addAttributeToFilter in Magento collections
As probably you know (or maybe not) in Magento you can add your own filters to every collection, basically it looks like: $collection = Mage::getModel(‘catalog/product’)->getCollection(); $collection->addAttributeToFilter(‘myfield’, array(‘eq’ => […]
Tutorial: How to create Amazon Fulfillment order using php?
Follow my steps and you will get working service:
Quick tip: PHP Extensions “0” must be loaded error in Magento install
Such error happens in 1.7.x branch (I saw it in 1.7.2), when entering database parameters you’re seeing “PHP Extensions “0” must be loaded” instead of next step. This […]
Quicktip: Magento 1.7.0.2 shows Database server does not support InnoDB storage engine
During configuration of Magento 1.7.0.2 (in fact whole 1.7.x branch) you may encounter such error: Database server does not support InnoDB storage engine Of course your MySQL server […]
Quick tip: Ajax filter is not working in Magento grid?
It is a common issue, you added: $this->setUseAjax(true); but filtering just shows ajax spinner and not loading content? Check your grid class ([COMPANY]_[MODULE]_Block_Adminhtml_[CONTROLLER]_Grid extending from Mage_Adminhtml_Block_Widget_Grid) and if […]