View Single Post
  #3  
Old 06-20-2017, 06:57 PM
 
Triple A Racing Triple A Racing is offline
 

X-Wizard
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 1,013
 

Default Re: Checkbox "I read privacy policy"

Quote:
Originally Posted by dagdag
Hello, I want to add a checkbox in checkout page for privacy policy and also the link to the policy page, how can I do?
As per @qualiteam's answer, you can do this via your own custom module.

If it helps, we ourselves do this, but in a slightly different way than you have described (we wanted minimum clicks for customers) It's very similar really. Within our custom module, we use this file: /skins/*custom_module_name*/customer/checkout/steps/review/parts/place_order.agree_note.twig

Which overwrites the original file in the standard skin.

The modified content is this:

Code:
{## # Checkout : order review step : selected state : place order : agree note # # @ListChild (list="checkout.review.selected.placeOrder", weight="500") #} <p class="agree-note">{{ t('Clicking the "Place order" button, means you accept our <a href="/privacy.html">Privacy</a> policy and our <a href="/terms-and-conditions.html">Terms & Conditions', {'URL': this.getTermsURL()})|raw }}</p>

The resultant visual presentation is quite clear and says all that's needed we think anyway.

Some may argue that only a specific tick box (as you have described) is 100% compliant, but we're happy as we are.
__________________
Dev Store & Live Store XC Business 5.4.1.35
Server; Ubuntu 20.04.4 LTS (HWE 5.13.0.51.58 Kernel)) / Plesk Obsidian
Nginx 1.20.2.1 / Apache 2.4.41 (Ubuntu Backported) / MariaDB 10.5.16 / PHP 7.4.30
Reply With Quote