Derek Posted April 16, 2010 Share Posted April 16, 2010 Hello, How can I go about adding a second terms of service people need to accept when they order but for a cancelation policy as well. I want them checking both check boxes not just one. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted April 18, 2010 WHMCS Support Manager Share Posted April 18, 2010 You'd need to edit /templates/orderforms/*your active template*/viewcart.tpl to add a second checkbox. 0 Quote Link to comment Share on other sites More sharing options...
Maik Posted April 18, 2010 Share Posted April 18, 2010 Hello Dont know if it is right ... i just add the following line to viewcart.tpl <p align="center"><input type="checkbox" name="acceptrow" id="acceptrow" /> <label for="acceptrow">{$LANG.orderrowagreement} <a href="myrow.php" target="_blank">{$LANG.orderrow}</a></label><p> The Checkbox appears under tos thats okay but it is not required? I need checkbox that is required for Order any way? Best regards 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 18, 2010 Share Posted April 18, 2010 You could disable the submit button until the box is checked. For an example, see: http://beckelman.net/post/2008/09/01/Disable-Submit-Button-Until-Terms-amp3b-Conditions-Are-Accepted-Using-jQuery.aspx (think away the ASP things ) 0 Quote Link to comment Share on other sites More sharing options...
Maik Posted April 18, 2010 Share Posted April 18, 2010 Hello Thanks for answer that is nice to have but no issue for myself. When i understand it right with jquery if no js is active this function on submit button is inactive so no check when submitting. Next problem i dont know how to implement this jquery on 2 checkboxes (sry no Coder). I have 2 Checkboxes at the End of Order Progress "Terms of Service" & "Right of Withdrawal". Now i just need it in this way that the second Checkbox need also checked. Now the 2 Box appears but Ordering will proceed if checked the second one or not. Hope coult understand me Best regards 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 18, 2010 Share Posted April 18, 2010 There's no action hook which allows us to "stop" the order when the checkbox isn't selected, so I see a javascript solution as the only solution. We even force people to use javascript. If they don't enable javascript, they can't visit our websites. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.