For now all of our form must have this 2 text for GDPR
1. Every form must have ‘Legitimate Notice‘ – just text no have tick box
2. Every form must have ‘check box‘ for ‘Data usage consent’
** If customer ‘tick‘ – ‘Data usage consent‘ there data will save to our CM database, if ‘not tick’ then will not save to CM
So we need to do this step below
1. Go to CM and create custom field (WooCommerce Total Order Count, Woocommerce Total Spent, WooCommerce Last Order Amount and Woocommerce Last Purcahse Date)
2. Download function.php file and copy this code to add to function.php file – copy code
3. Go to woocommerce/checkout/ and download thankyou.php file
4. Add code into thankyou.php file this code is to save data to CM but need to change field name same as CM