Guest pcaweb Posted March 15, 2012 Share Posted March 15, 2012 I need to implement the IP2Location service (which redirects a client browser based on IP address location) on a client's CubeCart store. I have setup the separate MySQL database containing the country codes and IP's. I now need to have the PHP code which establishes the IP address location of the visitor and redirects accordingly run on every page in the store. I suspect this could be achieved by putting the PHP code in an include file (.tpl?) and then having this included in the main index template? Can anyone help me out with any suggestions please? Here is the link to the relevant IP2Location knowledgebase article which shows the sample PHP code that needs to run (I have already done the database setup stuff): http://www.ip2locati...-mysql-database Quote Link to comment Share on other sites More sharing options...
Homar Posted March 15, 2012 Share Posted March 15, 2012 You should be able to put the code into the index.php file in the root directory of your store. Quote Link to comment Share on other sites More sharing options...
Guest pcaweb Posted March 15, 2012 Share Posted March 15, 2012 Homar - you're a genius! Sometimes the answer is so simple, I just can't see it! Thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.