Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old May 11th, 2011, 01:11 PM
cgarvey cgarvey is offline
Join Date: Mar 2011
Posts: 33
Default Geo Targeting to one specific merchant.

Hi Eric and Team,

I have this code to redirect people to a certain page based on their Geographical location.
The trouble is, I'm not sure how to use it. Only one of my merchants ships outside of the US, so I want to setup a page with only this merchants products and use the code below to have international users open to this page as opposed to how it opens now, with all my merchants.
I need to know where to post the code to and do I make a new page or category for this one merchant. Any help would be great.

Here is the link to my site:

Here is the code, it will need to be modified, but I think I can handle that.


$server = ''; // MySQL hostname
$username = ''; // MySQL username
$password = ''; // MySQL password
$dbname = ''; // MySQL db name

$db = mysql_connect($server, $username, $password) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());

$sql = 'SELECT
LIMIT 0,1';

list($country) = mysql_fetch_row(mysql_query($sql));

switch ($country) {
case 'se':
// Get the Swedish to a Swedish newssite
case 'us':
// And redirect US visitors to CNN
// The rest of the world can go to BBC


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
showing products from specific merchant only sylviathewitch Questions 1 March 18th, 2011 07:36 AM

All times are GMT -5. The time now is 01:13 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.