A-FWD webservice. This webservice performs user IP Geolocation and forwards the visitor to 'their' country specific Amazon store. In contrast to similar plugins, this plugin does not use any Javascript and does not perform external HTTP requests by itself. Visit the settings to configure. Author: Markus Goetz (Woboq), Attila Gyoerkoes Version: 1.1 Author URI: http://www.woboq.com/ */ global $waalg_tlds; $waalg_tlds = array("com", "ca", "uk", "de", "fr", "es", "it", "cn", "jp"); function waalg_install() { global $waalg_tlds; foreach ($waalg_tlds as $tld) { add_option('woboq_amazon_link_globalizer_affiliate_id_'. $tld,'','',yes); } add_option('woboq_amazon_link_globalizer_enable_asin', '1', '', yes); add_option('woboq_amazon_link_globalizer_enable_keyw', '1', '', yes); // Init those options by taking the value from other plugins if (!get_option("woboq_amazon_link_globalizer_affiliate_id_com")) update_option("woboq_amazon_link_globalizer_affiliate_id_com",get_option('amzn_com')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_uk")) update_option("woboq_amazon_link_globalizer_affiliate_id_uk",get_option('amzn_co_uk')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_de")) update_option("woboq_amazon_link_globalizer_affiliate_id_de",get_option('amzn_de')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_fr")) update_option("woboq_amazon_link_globalizer_affiliate_id_fr",get_option('amzn_fr')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_ca")) update_option("woboq_amazon_link_globalizer_affiliate_id_ca",get_option('amzn_ca')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_jp")) update_option("woboq_amazon_link_globalizer_affiliate_id_jp",get_option('amzn_jp')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_it")) update_option("woboq_amazon_link_globalizer_affiliate_id_it",get_option('amzn_it')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_cn")) update_option("woboq_amazon_link_globalizer_affiliate_id_cn",get_option('amzn_cn')); if (!get_option("woboq_amazon_link_globalizer_affiliate_id_es")) update_option("woboq_amazon_link_globalizer_affiliate_id_es",get_option('amzn_es')); } function waalg_remove() { global $waalg_tlds; foreach ($waalg_tlds as $tld) { delete_option('woboq_amazon_link_globalizer_affiliate_id_'.$tld); } delete_option('woboq_amazon_link_globalizer_enable_asin'); delete_option('woboq_amazon_link_globalizer_enable_keyw'); } function waalg_admin() { global $waalg_tlds; if (isset($_POST['submit'])) { if ( function_exists('current_user_can') && !current_user_can('manage_options') ) die(__('Cheatin’ uh?')); check_admin_referer('waalg_nonce'); foreach ($waalg_tlds as $tld) { if (isset($_POST['woboq_amazon_link_globalizer_affiliate_id_'.$tld])) update_option('woboq_amazon_link_globalizer_affiliate_id_'.$tld, strip_tags($_POST['woboq_amazon_link_globalizer_affiliate_id_'.$tld])); } if (isset($_POST['woboq_amazon_link_globalizer_enable_asin'])) update_option('woboq_amazon_link_globalizer_enable_asin', 1); else update_option('woboq_amazon_link_globalizer_enable_asin', 0); if (isset($_POST['woboq_amazon_link_globalizer_enable_keyw'])) update_option('woboq_amazon_link_globalizer_enable_keyw', 1); else update_option('woboq_amazon_link_globalizer_enable_keyw', 0); } ?>
If you specify your Amazon Affiliate IDs, this plugin will automatically rewrite all Amazon.com/Amzn.com with ASIN inside your posts to the A-FWD webservice. This webservice will determine the users location (using IP Geolocation) and then forward them to their appropriate country store.
This plugin does not need any Javascript.
You don't need to specify all IDs, they are optional.
Please enter your country specific Affiliate IDs (or tracking IDs) here:
Note that to run the Geolocation service, A-FWD takes its own Affiliate ID for each 100th request or if you do not specify an ID for that country.