As a US business with 97% of our sales to non EU countries it's not worth our time to try to become compliant with GDPR. I've also been monitoring to see if there were any exemptions to small mom & pop businesses and have not found any.
Here is a good page to read -
https://www.compliancejunction.com/gdpr-for-us-companies/
We are going to opt out of GDPR and stop selling to EU countries. Step 1 is to uncheck all EU countries and the UK. But this still allows existing EU customers to place orders. At least in 4.6.6. Step 2 is to send EU customers to my GDPR Policy page whenever they click on the cart or checkout pages.
In cart.php around line 640
After:
Code:
// Update minicart
x_load('minicart');
$smarty->assign(func_get_minicart_totals());
Add:
Code:
// GDPR - Send EU customers to GDPR static policy page
$gdpr = "false";
$eu_country = Array('AT','BE','BG','HR','CY','CZ','DK','EE','FI','FR','DE','GR','HU','IE','IT','LV','LT','LU','MT','NL','PL','PT','RO','SK','SI','ES','SE','GB');
foreach ($eu_country as $eu_test) {
if (($eu_test == $userinfo['s_country']) or ($eu_test == $userinfo['b_country'])) {
$gdpr = "true";
}
}
if ($gdpr == "true") {
header("Location: https://mydomain.com/gdpr-policy.html");
exit;
}
// / GDPR
As I'm no where near an expert with php in x-cart I welcome those of you who are to test & post a better solution.
Use at your own risk
Paul