Jump to content

IP2Location: setting up an include file?


Guest pcaweb
 Share

Recommended Posts

Guest pcaweb

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...