Magento Code Snippets

Posted on Posted in Magento

Download extension manually using pear/mage Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/ ./pear download magento-community/Shipping_Agent ./mage download community Shipping_Agent Clear cache/reindex <?php // clear cache Mage::app()->removeCache(‘catalog_rules_dirty’); // reindex prices Mage::getModel(‘index/process’)->load(2)->reindexEverything(); /* 1 = Product Attributes 2 = Product Attributes 3 = Catalog URL Rewrites 4 = Product Flat Data 5 = Category […]