Hi..
solved it my self
for base currency we should use if and else statement and define a new base currency
<?php
$geoPlugin_array = unserialize( file_get_contents('
http://www.geoplugin.net/php.gp?ip=' . $_SERVER['REMOTE_ADDR']) );
if ( $geoPlugin_array['geoplugin_currencyCode'] == 'USD' ) { //let's use a different base currency
$geoPlugin_array = unserialize( file_get_contents('
http://www.geoplugin.net/php.gp?ip=' . $_SERVER['REMOTE_ADDR'] . '&base_currency=EUR') );
echo ''.$geoPlugin_array['geoplugin_currencySymbol'] . round( (581.61 * $geoPlugin_array['geoplugin_currencyConverter']),0) . '';
} else {
echo '' . $geoPlugin_array['geoplugin_currencySymbol'] . round( (800 * $geoPlugin_array['geoplugin_currencyConverter']),0) . '';
}
?>
cool its working now ...
On Monday, December 16, 2013 12:23:40 PM UTC+5:30, Y S Gupta wrote: