Thursday , March 30 2017
Home >> Magento tutorial for beginners (page 5)

Magento tutorial for beginners

Magento tutorial for beginners completed series – Discovering Magento a easier way with Step-By-Step installation videos about product, themes, extension.

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 »

Magento Infographic, Evolution, and Worldwide Magento Usage

Magento is a flexible and scalable eCommerce solution with an open-source platform that allows companies to easily customize their online stores to their liking. Including the world’s most popular brands, there are over 150,000 businesses using this fast growing solution to help their company succeed. With this cost effective platform, ...

Read More »