mumins Posted May 3, 2016 Share Posted May 3, 2016 Subj. Mandatory field, and then invisable under My Account (optional). Custom Fields didn't work because no html allow in form fields. Any workaround, please? Link to comment Share on other sites More sharing options...
mumins Posted May 4, 2016 Author Share Posted May 4, 2016 (edited) Well, i did half of solution. In authentication.tpl before submit block i put: <div class="row"> <h3 class="page-subheading">{l s='Terms and Conditions'}</h3> <p class="checkbox"> <input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} /> <label for="cgv">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label> <a href="{$link_conditions|escape:'html':'UTF-8'}" class="quick-view" rel="nofollow">{l s='(Read the Terms of Service)'}</a> </p> </div> But there is one small problem - {$link_conditions|escape:'html':'UTF-8'} generates link /lv/login?back=my-account. I try to put hardlink - /lv/content/3-terms-and-conditions-of-use?content_only=1 but got 404 error. Any suggestions? Edited May 4, 2016 by mumins (see edit history) Link to comment Share on other sites More sharing options...
mumins Posted May 4, 2016 Author Share Posted May 4, 2016 (edited) So, 3/4 of job is done. href="{$link->getCMSLink(3, 'terms-and-conditions-of-use')}" works. The last 1/4 - open link to modal window or iframe. class="iframe" open link in new window. <a href="{$link->getCMSLink(3, 'terms-and-conditions-of-use?content_only=1')}" class="quick-view" >{l s='(Read the Terms of Service)'}</a> open modal with registration form inside o_0 Anyone? Edited May 4, 2016 by mumins (see edit history) Link to comment Share on other sites More sharing options...
mumins Posted May 4, 2016 Author Share Posted May 4, 2016 OP, i'm dumb, Customer data privacy block module can solve it. Mark this topic as solved. But i'll be very appreciative if someone gives me an answer about modal/iframe. Thank you and especialy for exhaustive and fast answers ;> 1 Link to comment Share on other sites More sharing options...
orbus Posted February 17, 2018 Share Posted February 17, 2018 On 2016. 05. 04. at 12:14 PM, mumins said: Well, i did half of solution. In authentication.tpl before submit block i put: <div class="row"> <h3 class="page-subheading">{l s='Terms and Conditions'}</h3> <p class="checkbox"> <input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} /> <label for="cgv">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label> <a href="{$link_conditions|escape:'html':'UTF-8'}" class="quick-view" rel="nofollow">{l s='(Read the Terms of Service)'}</a> </p> </div> But there is one small problem - {$link_conditions|escape:'html':'UTF-8'} generates link /lv/login?back=my-account. I try to put hardlink - /lv/content/3-terms-and-conditions-of-use?content_only=1 but got 404 error. Any suggestions? Hi, May I ask how did you do, when user don't check the cvt, an error message appears that "Hey, you don't tick the TOS" ? BR Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now