Author: pearl

Create custom table magento module

This tutorial explains how to create custom table magento module.The module create a table in the magento database using the install script.

With this module it create a table named ‘customer_form_table’ in the magento database with fields as shown below.

Develop admin module magento tutorial

This tutorial explains how to develop admin module magento. Here I am showing how to create a basic admin module in magento. The module allow the user to add their social media links in the magento admin area.It also create a textarea for adding the contact information.

Instead of adding static block for displaying the social media links this module automatically display social links as block.

Delete selected files php

This tutorial explains how to delete selected files php. This example read the files from the upload folder .Then it displays all files in tables as shown below.

There is a checkbox next to each file.On the button submit it goes through the checkbox array and delete the selected files.

Remove item magento cart redirects homepage

This tutorial explains how to fix the remove item magento cart redirects homepage error.When removing an item from the cart using the remove button in the checkout page it redirects to the homepage.The error is due the redirect function in the cartcontroller.php file

The error can be fix by rewriting the core files. In magento for editing the core files we need to create a module.Please create the following files.