Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
snippets:checkout:adding_a_consent_to_data_transfer_checkbox [2016/01/22 08:02] – created adamsnippets:checkout:adding_a_consent_to_data_transfer_checkbox [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ---- dataentry snippet ---- ---- dataentry snippet ----
-type          : snippet     # do not change this line +type          : snippet # do not change this line 
-category      : checkout            # mention the category like 'shipping', 'checkout' etc +category      : checkout # mention the category like 'shipping', 'checkout' etc 
-name          : Adding a "Consent to safe data transfer" checkbox to the checkout            # the name of the snippet +name          : Adding a "Consent to safe data transfer" checkbox to the checkout # the name of the snippet 
-description   : Required for EU based FoxyCart stores            # description about snippet +description   : Required for EU based FoxyCart stores # description about snippet 
-versions_tags : 0.6.0 1.1            # compatible versions ( always use the dots between the numerals e.g 0.6.0 or 0.7.1 ) +versions_tags : 0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0, 1.1 # compatible versions ( always use the dots between the numerals e.g 0.6.0 or 0.7.1 ) 
-reference_url :             # External link +reference_url :  # External link 
-tags_tags     :  checkout           # tags, separated by commas. +tags_tags     : checkout # tags, separated by commas. 
-date_dt       :  2016-01-22           # the date in YYYY-MM-DD format+date_dt       : 2016-01-22 # the date in YYYY-MM-DD format
 ---- ----
  
 +====== 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:
 +
 +<code html>
 +^^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^^
 +</code>

Site Tools