GDPR email message in checkout required fields list
-
On the Checkout page, if the customer does not enter an email address (or other required field) then WooCommerce will list the required fields at the top of the page.
The “Your email address will help us support your shopping experience throughout the site. Please check our Privacy Policy to see how we use your personal data.” message is appended to the “Billing Email address” field name. This looks bad.
Screenshot: https://imgur.com/a/lIfXeLZI have two ideas to solve this:
1) Modify Wcal_Tracking_msg class to store the original and modified $fields[ ‘billing’ ][ ‘billing_email’ ][ ‘label’ ] in member variables.
Then add_filter for ‘woocommerce_checkout_required_field_notice’ to change the message when $field_label is the modified $fields[ ‘billing’ ][ ‘billing_email’ ][ ‘label’ ]. Do a str_replace() of the modified text with the original text.
2) In the ‘woocommerce_checkout_required_field_notice’ check for the ‘wcal_guest_cart_capture_msg’ text and remove it if found. It wouldn’t be a big deal to call str_replace() each time ‘woocommerce_checkout_required_field_notice’ is called.
- The topic ‘GDPR email message in checkout required fields list’ is closed to new replies.