CodePetals

Some Simple Tips and Tricks of Magento

Category

Tips and Tricks

How to create Custom Domain for XAMPP ?

XAMPP is open source web server used to create local server on windows machine. To access your projects you must have used URLs like http://localhost/magento19/ . Custom domains for XAMPP can be setup to access projects. So that whenever www.example.com… Continue Reading →






Customize online Customer grid to show location in Magento Admin

Online Customers is added feature in Magento, which allows administrator to track Online customers, Last url visited and its IP Address. To use this feature, go to Admin Panel > System -> Configuration -> Advanced -> System -> Log and… Continue Reading →






Read spreadsheets using PHPExcel library in Magento

PHPExcel is pretty much cool tool which provide classes to generate spreadsheets or excel sheets in your PHP projects. Unfortunately Magneto doesn’t support for .xls or .xlsx file types for import and export. It only supports .csv format, but working… Continue Reading →






Add same product as separate items in shopping cart

Cart item increases its quantity, when same product is added to cart again. But what if we need to add a custom option to cart item and show cart items in Shopping Cart separately. E.g. Customer needs to select Seller… Continue Reading →






Clear Magento Cache programatically

Magento cache does caching system at many levels from Zend Framework, so as to boost up your Magento e-commerce store. Magento Cache avoids repetitive operations for your Magento. Magento cache includes configuration files(config.xml, local.xml), html files, web services xml files… Continue Reading →






Magento unable to login to admin after install

Login attempted ? but Failed. Have you ever googled “Magento unable to login to admin after install“?. You must have ended up with commenting out few lines from 87 to 104 in “app\code\core\Mage\Core\Model\Session\Abstract\Varien.php” file. Very often we face the same… Continue Reading →






How to install APC (Alternative PHP Cache) for Magento ( nginx + PHP-FPM )

APC (Alternative PHP Cache / Opcode Cache) is a opcode cache which can be used to reduce Disk I/O by caching your PHP code as well as user variables and cutting down repetitive PHP scripts and executing database scripts ,… Continue Reading →






How to convert Dropdown attribute into Multiselect attribute in Magento

Sometimes we have face client requirement to change some dropdown attribute (select attribute) into multiselect options. After a lot of coding and template designing in Magento it may look like a tough job to do. So today we will learn… Continue Reading →






How to create custom log in Magento ?

By default Magento writes all logs in var/log/System.log almost all of the logs of Magento are being written in this file. So if you are creating a new extension and to debug some passing variables, you can create your own… Continue Reading →






How to get payment method used for order in Magento ?

Payment method is critical in order to create custom extension for orders, or for Mobile APIs to get order detailed information in Magento. e.g. billing address, shipping address, payment mode and tracking details. We can easily get these required data… Continue Reading →






© 2017 CodePetals

Up ↑