| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Click "I agree" checkbox before allowing purchase. | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Submit buttons not working
I put this code in place as mentioned.. Everything seems to work except the submit button becomes non-functional. It appears after you click I agree to the terms, but you cannot click the submit order button. What could be causing that?
I am using version 3.5.14 Code:
Thanks in advance!
__________________
Red Hat Linux/Apache |
|||||||
#12
|
|||||||
|
|||||||
After placing the code as suggested although i had a smarty error this was caused by another mod, once complete the check button works absolutely fine, check yes SUBMIT ORDER button appears, CHECK NO submit button dissapears just like it should.......im using vers 4.13
goto www.realsecurity.co.uk try the checkout and you will see it works just fine!!!
__________________
SURECOM XCART V4.1.8 |
|||||||
#13
|
|||||||
|
|||||||
Problem solved
Okay...my problem was because there is different syntax for version 3.5.10 thent he 4.x version. This is what I needed inside the <div>
Code:
It works great now...Thanks for a nice mod!
__________________
Red Hat Linux/Apache |
|||||||
#14
|
|||||||||
|
|||||||||
I have tried both of these methods and no Submit button shows up for me when I click on I Agree. (Checkbox div & radio button). I have 4.0.17 & I am also on a Mac using Safari. That is most likely the reason, but wanted to let you know that this method is preventing Mac users on Safari from purchasing your product. I have too many mac customers to cut them out. Have to find another method of doing this.
__________________
Mary Lee ------------------- Dinner and a Murder Mystery Games http://www.dinnerandamurder.com x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template |
|||||||||
#15
|
|||||||||
|
|||||||||
Re: Click "I agree" checkbox before allowing purchase.
Here is another solution.
Display the "I agree" text with a checkbox and the submit button initially. When the customer goes to click the submit button the script below checks to see if the checkbox was checked or not. If so the order goes through else a popup box is displayed telling the customer he/she must agree to the terms and conditons before placing the order. Code:
And place this code in the submit button link. Code:
I've seen most websites operate in this matter. Check out the UPS website to see this in action. Try clicking the 'Track' button without filling out the form and you'll see what happens. Code:
__________________
X-Cart version 3.5.11 PHP 4.4.4 MySQL server 4.1.21-standard OS Linux Perl 5.008007 XML parser (expat) 1.95.6 |
|||||||||
#16
|
|||||||||
|
|||||||||
Re: Click "I agree" checkbox before allowing purchase.
Hey there all,
I need to have this or a similar mod to run on my site. I've tried all the variations and none would even display a button of any sort. I think x-cart has evolved past where this mod works as is. I'm hoping that there are some out there that would enjoy reopening this mod for it to work with the latest stable version 4.1.8. I don't necessarily need it to hide/display just a javascript check to verify that a check box is checked.(with an alert box) hope this catches someones interest!:P -hroth |
|||||||||
#17
|
|||||||
|
|||||||
Re: Click "I agree" checkbox before allowing purchase.
check out this thread. I was able to implement this code in just a few minutes.
http://forum.x-cart.com/viewtopic.php?p=129976 If you want to change the text, you can find it in the languages section of your admin.
__________________
XCart - Version 4.1.6 & 4.1.7 |
|||||||
#18
|
|||||||||
|
|||||||||
Re: Click "I agree" checkbox before allowing purchase.
Thanks Dave,
I went through the mod and it works perfectly! Much much obliged! -hroth |
|||||||||
#19
|
|||||||
|
|||||||
Re: Click "I agree" checkbox before allowing purchase.
I wish I had seen this before the custom modification we purchased with our script.
__________________
X-Cart v. 4.1.8 |
|||||||
#20
|
|||||||
|
|||||||
Re: Click "I agree" checkbox before allowing purchase.
Hello!
I recently tried to implement a date picker within "checkout_notes.tpl". It works perfectly in html but apparently not within tpl. Do I make a very obvious mistake? Attached is the file. Thank you for any hint!! ~Jahn {* $Id: checkout_notes.tpl,v 1.6 2005/12/07 14:07:21 max Exp $ *} {include file="customer/main/subheader.tpl" title=$lng.txt_notes class="grey"} <head> <link rel="stylesheet" href="{$SkinDir}/cal-2/demos.css" media="screen" type="text/css"> <script type="text/javascript" src="{$SkinDir}/cal-2/dhtmlSuite-common.js"></script> <script language="javascript" type="text/javascript" src="{$SkinDir}/cal-2/dhtmlSuite-calendar.js"></script> <script language="javascript" type="text/javascript" src="{$SkinDir}/cal-2/dhtmlSuite-dragDropSimple.js"></script> <link type="text/css" media="screen" rel="stylesheet" href="{$SkinDir}/cal-2/calendar.css"> </head> <body> <!-- A DATE PICKER FOR FORMS --> {literal} <script type="text/javascript"> var calendarObjForForm = new DHTMLSuite.calendar({minuteDropDownInterval:10,num berOfRowsInHourDropDown:5,callbackFunctionOnDayCli ck:'getDateFromCalendar',isDragable:true,displayTi meBar:true}); calendarObjForForm.setCallbackFunctionOnClose('myO therFunction'); function myOtherFunction() { } function pickDate(buttonObj,inputObject) { calendarObjForForm.setCalendarPositionByHTMLElemen t(inputObject,0,inputObject.offsetHeight+2); // Position the calendar right below the form input calendarObjForForm.setInitialDateFromInput(inputOb ject,'yyyy-mm-dd hh:ii'); // Specify that the calendar should set it's initial date from the value of the input field. calendarObjForForm.addHtmlElementReference('myDate ',inputObject); // Adding a reference to this element so that I can pick it up in the getDateFromCalendar below(myInput is a unique key) if(calendarObjForForm.isVisible()){ calendarObjForForm.hide(); }else{ calendarObjForForm.resetViewDisplayedMonth(); // This line resets the view back to the inital display, i.e. it displays the inital month and not the month it displayed the last time it was open. calendarObjForForm.display(); } } /* inputArray is an associative array with the properties year month day hour minute calendarRef - Reference to the DHTMLSuite.calendar object. */ function getDateFromCalendar(inputArray) { var references = calendarObjForForm.getHtmlElementReferences(); // Get back reference to form field. references.myDate.value = inputArray.year + '-' + inputArray.month + '-' + inputArray.day + ' ' + inputArray.hour + ':' + inputArray.minute; calendarObjForForm.hide(); } </script>{/literal} <form name="myForm"> <table cellspacing="0" cellpadding="2"> <tr valign="top"> <td>{$lng.lbl_customer_notes}:</td> <td> </td> <td nowrap="nowrap"><textarea cols="70" rows="3" name="Customer_Notes" value="2007-12-24 12:00" onclick="" ></textarea></td> <td><input value="Pick-up date/time" onclick="pickDate(this,document.forms[0].myDate);" type="button"></td> </tr> </table></form> </body>
__________________
Version 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|