Guest Posted October 11, 2002 Posted October 11, 2002 I need to add a disclaimer on the checkout section that the customer must agree to (check a box) before their order will be filled. I also need that disclaimer and the fact that they checked the box to print out on the order and the receipt. The clients credit card processor requires this for all his orders. (he sells fireworks, customer must agree they aren't going to blow anyone up etc....) Any help on how to go about this would be greatly appreciated.
veverkap Posted October 11, 2002 Posted October 11, 2002 Have you tried looking in the contributions first? I have a contribution installed that I downloaded here that could be tweaked perfectly for you. 07/19/2002 - condition of use agreement.zip (2.2-CVS) Author: maik caro You want to force you costumers to agree to your "general terms and conditions". This little package adds a checkbox so costumers have to agree to your terms and conditions before finishing there order. Very simple to install !!! Look in the contributions and go from there. Patrick Patrick
Guest Posted October 11, 2002 Posted October 11, 2002 Yes I had looked at various contributions but I missed that one. Thanks that should do exactly what I need! :D
aliharis2004 Posted February 5, 2004 Posted February 5, 2004 I tried the installation recommended but I am getting the following the Fatal Error ... Fatal error: Call to undefined function: confirm() in /hsphere/local/home/picmos/mosaicartkeepsakes.com/catalog/checkout_confirmation.php on line 83 anybody !!!!!!
matheisl Posted February 10, 2004 Posted February 10, 2004 Hi, i have installed it also - but i get this error: Call to undefined function: confirmation() in ........ catalog/checkout_confirmation.php on line 83 who can help me? Thanks, best regards Hans-Peter
micahbailey Posted August 29, 2007 Posted August 29, 2007 Here is what I did Put in the <head> section of checkout_payment.php: <script type="text/javascript"> function showMe (it, box) { var vis = (box.checked) ? "visible" : "hidden"; document.getElementById(it).style.visibility = vis; } </script> Find this code in the checkout_payment.php file and add the red part: <td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td> <td class="main" align="right" id="table1"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> Then add this part right above that code: <div style="padding:0"> <form> <input type="checkbox" name="c1" onclick="showMe('table1', this)" checked="checked"> <span class="checkbox">I authorize [company name] to charge my credit card account after shipment to my address.</span> </form> </div> Basically, the check box is checked that forces someone to accept the conditions before confirming the order but if it is unchecked then the continue button disappears and they are unable to process the order. Pretty simple solution. You can name "table1" anything, I just named it that for the heck of it. You could also put in a hyperlink to your terms and conditions that pops up a window if they want to view it right there. And lastly, you can delete checked="checked" from the code if you want the check box unchecked by default instead of checked. Hope that helps. Micah "If ignorance is bliss, why aren’t more people happy?"
psychrts Posted January 26, 2008 Posted January 26, 2008 Ok, that's great advice, now however my process button will not work. For example, it is hidden if the box is not checked and illuminated if the box is checked. The problem though now is that once the box is checked the process button will not continue with the order. How do I go about fixing this problem? Oh, and yes if I take the new code out evereything functions properly. Thank you, psychrts Here is what I did Put in the <head> section of checkout_payment.php: <script type="text/javascript"> function showMe (it, box) { var vis = (box.checked) ? "visible" : "hidden"; document.getElementById(it).style.visibility = vis; } </script> Find this code in the checkout_payment.php file and add the red part: <td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td> <td class="main" align="right" id="table1"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> Then add this part right above that code: <div style="padding:0"> <form> <input type="checkbox" name="c1" onclick="showMe('table1', this)" checked="checked"> <span class="checkbox">I authorize [company name] to charge my credit card account after shipment to my address.</span> </form> </div> Basically, the check box is checked that forces someone to accept the conditions before confirming the order but if it is unchecked then the continue button disappears and they are unable to process the order. Pretty simple solution. You can name "table1" anything, I just named it that for the heck of it. You could also put in a hyperlink to your terms and conditions that pops up a window if they want to view it right there. And lastly, you can delete checked="checked" from the code if you want the check box unchecked by default instead of checked. Hope that helps.
Guest Posted October 26, 2010 Posted October 26, 2010 did this ever get fixed?? its exactly what i need for my site, as all the contributions ive tried are for older versions or bugger up the sql etc. this is nice and simple but i have the same issue with the continue button NOT being clickable.
Guest Posted October 26, 2010 Posted October 26, 2010 right for anyone else trying this, the only way i could get the link to be clickable afterwards was to cheat and make it a normal image with a link so not php coded. From This>> <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> To this>> <td class="main" align="right" id="table1"><a href="http://www.yoursite.co.uk/store/checkout_confirmation.php"><img src="http://www.yoursite.co.uk/store/includes/languages/english/images/buttons/button_continue.gif" border="0"></a></td>
burt Posted October 26, 2010 Posted October 26, 2010 You really do not want to do that. You may have problems with sessions (and thus customers lose their cart contents). Change it back and sort out the problem properly.
Guest Posted October 26, 2010 Posted October 26, 2010 yeah i did lol worked while i was there and sorting it, but when i started from the loggin in etc, i would select the payment method and then continue and it would keep looping asking me to select a payment method. anyone any ideas??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.