How to create sub menu in magento admin from custom module

As a Magento Developer sometimes we may get a requirement to create a new menu item/ sub menu in magento admin panel. In todays article we see the steps to create a sub menu under an existing top menu in adminpanel.So for this example the sub menu will be created under customers menu. We can […]

How to show multiple items in Paypal checkout page?

When you are working in shopping cart site with Paypal you must wonder how to show multiple items in Paypal site during checkout. Its pretty simple.  You can add / pass n number of items to Paypal page for checkout instead of 1 single item with total price, if you do so the use may […]

How to Create Custom Column Renderer in magento grid

Magento Admin Grid provides the tabular data from database in grid format. This is convenient for all text data. In Some cases we may have other data type to be shown in grid which is not plain text data. For example Image data. For this purpose magento provides us the flexibility to define our own […]

Percentage loader with jQuery plugin & HTML 5

jQuery.PercentageLoader is a jQuery plugin for displaying a progress widget in more visually striking way than the ubiquitous horizontal progress bar / textual counter. The plugin takes miniminal installation and is simple and flexibile to use. It makes use of HTML 5 canvas for a rich graphical appearance with only a 10kb (minified) javascript file […]

How to create Singly LinkedList in Javascript

Linked lists are among the simplest and most common data structures. A Linked List contains 2 parts data and the link(pointer) to the next data element Though coding of linked list is common in languages such as C, PHP. We will see how to implement in Javascript.

How to print/echo SQL string in Codeigniter ?

Printing a last executed SQL query in Codeigniter is pretty simple. Usually in the development phase we all will debug the database result by printing the query to see whether the SQL is returning any value or not. In Codeigniter framework we can print the last executed SQL query in single line. You can add […]

How to send emails from custom module in magento

Magento core modules provides some important functions to send emails. In todays article we will see how to send a custom email from a custom module in magento. For our example we are going to create a Sample Feedback Form and submit them to admin in our custom module Step 1: The config.xml file of […]

How to create custom helloworld api in magento

Magento CoreAPI provides a set of common resources for managing customer, catalog etc. Sometimes we Need to Provide our Own API from our website to thirdparties. In this tutorial we will see how to create our own custom helloworld api in magento. For Simplicity Access Control restrictions are left out in this example. Step 1: […]

Facebook like sticky header using Waypoints jQuery plugin

Most interesting feature nowadays in all web apps is User Interface. Facebook has the simple and most powerful interface, the navigation like Home, Profile and other few links that stick  to the top, whenever you scroll or navigate to the bottom of the page so that user may be able to navigate where ever he/she wants. In […]

How to reverse a number in php without built in functions

A Simple PHP Home work code that returns the reverse of a given number,

The Logic here is simple. First get the given number and extract the final digit. Initially the reverse of the number will be zero, on each iteration multiply the reverse with 10 and add the modulus result.