View Single Post
Old 06-01-2018, 05:54 AM
ITVV ITVV is online now

Join Date: Nov 2006
Location: UK
Posts: 1,103

Default Re: Gdpr - upcoming law for European merchants

@cflsystems - not sure what you mean Steve?

Here is some code from GDPR Module for x-cart 4.6.6

// 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); }

With GEoIP set the above code would immediately disable GDPR notice / cookie for any visit.

This works fine and disables any form of GDPR notice / checkout requirements


X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote