Change magento package and theme programatically from admin

When we are dealing with magento sometimes we need to change the package and theme of the front end,From front end its easy to do as shown in stackoverflow But this code doesnt works from admin section, So we need to …
Add States or Region to a Country in Magento

By default Magento consists of all the countries and doesn’t have the states for all these countries. Unfortunately we didnt have these options in admin to do add states or region. So to add states or region to a country …
Form validation on change in magento

In magento some times we need to validate some fields like username on its availability. So in that case we need to run the validation function on an event change of the element In order to do that we need …
Automatically change store based on user location magento

Magento has the inbuilt facility to set up multistore functionality in the admin side.It can be managed from the front end by a store switcher or language switcher.But what if we needed to be automatically change store based on user …