Add States or Region to a Country in Magento
![](https://i0.wp.com/navaneeth.me/wp-content/uploads/2014/07/add-states-or-region-to-a-country-in-magento.jpg?resize=577%2C262&ssl=1)
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
![](https://i0.wp.com/navaneeth.me/wp-content/uploads/2014/07/Create-New-Customer-Account-e1406272859718.png?resize=1000%2C288&ssl=1)
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 …
Delete all categories in Magento
![](https://i0.wp.com/navaneeth.me/wp-content/uploads/2014/03/delete-all-categories-in-magento-e1395144058140.jpg?resize=800%2C288&ssl=1)
If you have been working on a demo store – or yours is still in the early stages of construction, you will probably find it necessary to remove all the categories to start fresh at some point So here is …
US and Canada postal code validation RegEx
When dealing with magento or any other ecommerce websites which is meant to be targeted for specific countries or not we must check validity of the postal code On one of my recent projects I come with the same problem …