Friday , September 22 2017
Home >> Tag Archives: magento tutorial for beginners (page 5)

Tag Archives: magento tutorial for beginners

Magento delete empty categories and sub-categories

images

Remove all empty categories and sub-categories in Magento. When there are empty categories, the website shows empty page in those categories in frontend. Create a file in the magento root, I will name it rmvEmptyCats.php, with following code: require “app/Mage.php”; umask(0); Mage::app();   $categoryCollection = Mage::getModel(‘catalog/category’)->getCollection()     ->addFieldToFilter(‘level’, array(‘gteq’ => 2)); //greater than root category id   foreach($categoryCollection as $category) {     if ($category->getProductCount() === 0) {         $category->delete();     } } ...

Read More »

7 tips to pick a best theme for your Magento Online Store

Home_Page

Developing an ecommerce store is the best way to improve scalability of your business. The first and foremost thing you’d require when you plan to set up an ecommerce store is the platform on which it is going to be raised upon. Given the current trend, majority of websites are ...

Read More »