Adding a Consent to Data Transfer Checkbox in the Checkout
This snippet was made in relation to the post about the workaround for the removal of Safe Harbor. This would require customers to check the consent to allow a secure data transfer, and serves as a workaround until a new agreement to replace Safe Harbor is in place. You can read more information about it here: http://www.foxycart.com/blog/safe-harbor-is-dead-long-live-something-else#.VqGXw4h97IU
For stores that are on version 2.0, you're in luck! This feature has now been built in to the templates, with a configuration option to toggle it.
Implementation
Paste the following code immediately after the ^^checkout^^
tag in your checkout template:
^^custom_begin^^ <h2>Additional Information</h2> <fieldset id="fc_custom_fields"> <legend>Additional Information</legend> <div class="fc_inner"> <div> <h4>Consent to Secure Data Transfer</h4> <input type="checkbox" id="consent_to_secure_data" name="consent_to_secure_data" value="accept" class="fc_required" /> <label for="consent_to_secure_data">We make every effort to protect your personal data. By checking this box, you are consenting to securely transmitting the data entered to here to the secure ecommerce servers we utilize in the United States.</label> <label class="fc_error" style="display:none;" for="consent_to_secure_data">You must accept this Consent to Secure Data Transfer to complete this transaction.</label> </div> </div><!-- .fc_inner --> </fieldset><!-- #fc_custom_fields --> ^^custom_end^^