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 …
Get countryID from selected / entered shipping address magento
Some times we need to get countryid from selected/entered shipping address, As the checkout page is completely driven by ajax we need to utilize any page which is refreshed like the available shipping methods block so when ever there is …
Remove a parameter from url
In this post we are discussing about the ways in which we can remove a parameter from url we can do it by using preg_replace and regular expressions The regular expression used for this is and the whole code will …