View Single Post
  #3  
Old 08-19-2014, 12:11 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: How add required checkbox to checkout

Here is the basic idea that I could glean quickly, should put you on the right track:
Template: /ideal_responsive/modules/One_Page_Checkout/opc_summary.tpl
Code:
<div class="terms_n_conditions"> <label for="accept_terms"> <input type="checkbox" name="accept_terms" id="accept_terms" value="Y" /> {$lng.txt_terms_and_conditions_note|substitute:"terms_url":"`$xcart_web_dir`/pages.php?alias=conditions":"privacy_url":"`$xcart_web_dir`/pages.php?alias=business"} </label> </div>
Just duplicate that code and change the input name to "accept_two" or similar, update the label "for" too. Wipe out the language variable in the label and put your own text and links. Then search for the JavaScript and update the function to check for the second box, and that's the piece that would take me a bit to look up and work out for you.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote