Ah!! thing is wrong in my previous code, because error is gone, but issue on currency conversion..
So Here is the correct function which you need to replace :
if ((int) $this->storage->get_val(‘woocs_first_unique_visit’) == 0)
{
//$this->storage->set_val(‘woocs_first_unique_visit’, 0);
$this->is_first_unique_visit = true;
$this->storage->set_val(‘woocs_current_currency’, $this->get_welcome_currency());
$file_path = ABSPATH . ‘wp-content/plugins/woocommerce/includes/class-wc-geolocation.php’;
if (file_exists($file_path))
{
include_once($file_path );
$this->init_geo_currency();
}
}