Forum Moderators: skibum
I have a fansite which currently has Amazon.com links to items and such for purchase. Now, being in the UK myself and having a fair percentage of visitors from the UK, they are obviously missing out ( or I am depending on how the situation is looked at ). Now what I want to ask is, is there anyone in my posistion and how do you currently do things?
Is there anyway of being associates to both amazon.com and .co.uk with minimal change to the site?
Another thing I would like to ask, I have opted to be paid in amazon.com gift certificates .. can these be spent in the UK?
Please respond as I have searched around in many places but found no information.
I can code in php/mysql/xhtml etc ( though would still consider myself in the learning stage with php/mysql ).
Would really help!
Look forward to hearing from you.
$sql = "SELECT countrycode FROM ip_to_country WHERE ipfrom < $ip_number AND ipto > $ip_number";
where $ip_number is:
$ip_number = sprintf("%u", ip2long($_SERVER["REMOTE_ADDR"]));
This will return a 2-digit country code like US, AT etc. for your further use. Doesn't give a perfect match but good enough to raise sells :)
There is a short handbook and some code snippets on the site mentioned above. For further information please PM me.
Ad
A simple way of doing this is to format links like this:
Introduction to Widgets - US [aaa] / UK [bbb] / Deutschland [ccc] / France [ddd] / Canada [eee]
For other types of Amazon banner.. yeah, you're gonna have to use some neat geotargetting scripts.