Witty and insightful observations on the world? Sorry to disappoint, this is a techie blog purely for self reference - published online in the hope it will help others!

Magento – Hide content based on IP address

This post will be useful to anybody who has been asked to hide or display Magento content (specifically prices and add to cart stuff) based on visitor IP. As a kickoff you can read my initial Stackoverflow question on it. I can't say who the client was (NDA) in this case but here's the synopsis; They are a UK based manufacturer and they don't want to compete with their worldwide supply chain, so they want; 1. All users with IPs originating in North America get redirected to a totally different website (non-Magento, nothing to do with me) ideally with a redirect message. 2. All user with IPs originating anywhere other than North America, The UK and ... Read more

Categories