CodePetals

Some Simple Tips and Tricks of Magento

Category

Tips and Tricks

How to Enable gzip compression in XAMPP ?

Steps to Enable Open c:\xampp20\apache\conf\httpd.conf file. Find and uncomment following lines by removing “#”.

Add below content in end of file.

Save file and Restart apache. ๐Ÿ™‚ Verify compression Now you can verify by running Audit or… 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 →

Delete Products from Magento Programatically

Delete Product from Magento Using Zend method

Using phpMyAdmin Execute command in phpMyAdmin or SQLClient

This will also cascade all attributes from eav tables. PS: Ratings and Reviews will not be deleted in this method, as these tables… 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 →

How to post JSON data to an API with CURL in PHP?

Many of you may already know how to send data with CURL to an API in PHP. For those who don’t know this, let me share how this can be nicely done.

Hope you like this simple code to… 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 ↑