View Single Post
  #78  
Old 05-08-2018, 03:32 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default Re: Gdpr - upcoming law for European merchants

I have the 4.6.6 version working except for the geoip function.

If you use Total Server Solutions you can go to 'cpanel' and check and save the 'geoip' checkbox in the php extenstion section of 'Select PHP Version'.

Does anyone know what XC version the function "geoip_continent_code_by_name" exists?

Code:
// disable module for non-EU customers if ( !defined('DEVELOPMENT_MODE') && !defined('XC_DEBUG_EU_COOKIE_LAW') // EU_GDPR && !in_array(func_constant('AREA_TYPE'), array('A','P')) && function_exists('geoip_continent_code_by_name') && in_array(geoip_continent_code_by_name($CLIENT_IP), array('AF','AN','AS','NA','OC','SA')) && !empty($CLIENT_IP) && !empty($smarty) ) { unset($active_modules['EU_Cookie_Law']); $smarty->assign('active_modules', $active_modules); }

Thanks!

Paul

Updated - Sorry... It's a PHP function

http://php.net/manual/en/function.geoip-continent-code-by-name.php
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote