To create an archive of a directory By Saurabh Patel July 25, 2012 tar -cvf name.tar /path/to/directory tar -cvf name.tar /path/to/file1 /path/to/file2 /path/to/file3 for extract tar file : tar -xvf name.tar /path/to/directory tar -xvf name.tar /path/to/file1 /path/to/file2 /path/to/file3 Read more
How do I get an instance of an attribute? By Saurabh Patel July 24, 2012 Mage::getSingleton(‘eav/config’)->getAttribute($entityType, $attributeCode) Read more
How do I get the simple products assigned to a configurable product? By Saurabh Patel July 24, 2012 $configProduct->getTypeInstance()->getUsedProductCollection($configProduct); Read more
How do I get the configurable/grouped/bundled product a simple product belongs to? By Saurabh Patel July 24, 2012 $simpleProduct->loadParentProductIds(); $parentProductIds = $simpleProduct->getParentProductIds(); Read more
How do I get all Store Views? By Saurabh Patel July 24, 2012 Mage::app()->getStores(); // pass true to include the admin store view, too Read more
How do I get the Id of the curent store view? By Saurabh Patel July 24, 2012 Mage::app()->getStore()->getId(); Read more
How do I get at GET/POST parameters? By Saurabh Patel July 24, 2012 Mage::app()->getRequest()->getParam(‘param_name’); // single parameter Mage::app()->getRequest()->getParams(); // all parameters Read more