Sending JSON data to the remote server

JSON: JavaScript Object Notation. JSON is syntax for storing and exchanging text information. Much like XML. JSON is smaller than XML, and faster and easier to parse. You may need to post JSON data to the server for different purposes. If you are wondering about ‘How to send JSON data to the remote server?’ then …

Read moreSending JSON data to the remote server

Using get_defined_vars() for debugging local scope variables

Suppose say, you want to debug variables in some observer method. You can either log each variable or simply dump it. But when you have many variables, debugging each variable can be an overhead task. For this purpose we can use PHP’s inbuilt function: get_defined_vars() How to use it? //put this line at the top …

Read moreUsing get_defined_vars() for debugging local scope variables

Converting multi-select field to checkbox in the advanced search form of Magento

Introduction: Have you ever thought of modifying the default multi-select field to checkbox field in an advanced search of Magento? If not then here we will be discussing how to do which is damn easy and much user-friendlier. Steps: 1> Copy the following file to your working theme: app/design/frontend/[interface]/[theme]/template/catalogsearch/advanced/form.phtml 2> Open the form.phtml (from above) …

Read moreConverting multi-select field to checkbox in the advanced search form of Magento