Monday , December 17 2018
Home >> Tag Archives: Magento tutorials

Tag Archives: Magento tutorials

Magento tutorial for beginners:Magento Orders

Howdy friends,  Welcome back to Magento tutorial for beginners! In this post we will explain how the Magento orders process works and how to manage  your Magento orders by post Magento tutorial for beginners:Magento Orders How to configure Magento order options To modify your Magento order options (checkout settings, shipping settings, payment ...

Read More »

Magento delete empty categories and sub-categories


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 »

Sending Email in Magento

Anyone can send mail using php mail() function. But in magento, all the functionality you need to just send argument inside those functions. See the following code to send mail using magento function: <?php  $mail = Mage::getModel(‘core/email’); $mail->setToName(‘Your Name’); $mail->setToEmail(‘Youe Email’); $mail->setBody(‘Mail Text / Mail Content’); $mail->setSubject(‘Mail Subject’); $mail->setFromEmail(‘Sender Mail Id’); $mail->setFromName(“Msg to Show on Subject”); $mail->setType(‘html’);// YOu can use Html or text as Mail format   try { $mail->send(); Mage::getSingleton(‘core/session’)->addSuccess(‘Your request has been sent’); $this->_redirect(”); } catch (Exception $e) { Mage::getSingleton(‘core/session’)->addError(‘Unable to send.’); ...

Read More »
Heap | Mobile and Web Analytics