CodePetals

Some Simple Tips and Tricks of Magento

Category

php

How to use Microsoft Azure Blob Storage in PHP Application

Overview Microsoft Azure is a public cloud computing and enterprise grade platform. Microsoft has started to support PHP as well, so we can deploy our PHP application on Microsoft Azure very easily. Blob storage is a service provided by Microsoft… Continue Reading →






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 →






How to install PHP Laravel on XAMPP?

If you are newbie in PHP Laravel and want to create some awesome project based on this beautiful PHP framework, lets install Laravel in XAMPP. It is incredibly easy to work with, customization and setup. It has got pre-built protection… 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 →






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 →






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 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 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 →






© 2017 CodePetals

Up ↑