X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Must "Accept terms" before submitting the order (https://forum.x-cart.com/showthread.php?t=20597)

Realsecurity 08-19-2007 01:33 PM

Re: Must "Accept terms" before submitting the order
 
Worked fine in 4.1.8 as well, just configured loooks good!

sales@webosusa.com 01-24-2008 04:42 PM

Re: Must "Accept terms" before submitting the order
 
Quote:

Originally Posted by Zaja
v. 4.1.1, 4.1.2, 4.1.3:
-----------------

1. open skin/modules/Fast_Lane_Checkout/checkout_3_place.tpl and add following code after {capture name=dialog}:
Code:

<script type="text/javascript">
{literal}
//"Accept terms" form submission- By Dynamic Drive
var checkobj
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="button")
tempobj.disabled=!checkobj.checked
}}}
{/literal}
</script>


2. replace:
Code:

{$lng.txt_terms_and_conditions_note}
with:
Code:

<input name="agreecheck" type="checkbox" onclick="agreesubmit(this)" /> {$lng.txt_terms_and_conditions_note}

3. replace:
Code:

{include file="buttons/button.tpl" button_title=$lng.lbl_submit_order style="button" href=$button_href}
with:
Code:

<input type="button" value="{$lng.lbl_submit_order}" onclick="{$button_href}" style="padding: 4px; color: #BD0000; font-weight: bold;" disabled="disabled" />

4. Repeat procedure in skin/customer/main/checkout.tpl (add javascript code after {capture name=checkout_dialog})

Thats it!


Works great on 4.1.9

Yupy!!!!

Tx!

Cya!

shwekhaw 02-23-2008 12:14 AM

Re: Must "Accept terms" before submitting the order
 
I suggest everyone install this. X-cart should implement this in coming versions. here is why
I have credit dispute over $300 and customer claim he does not know Return policy.
I took screenshot of "Clicking submit button I agree etc.. " the original agree sentence that without check box.
Bank sent a letter back to me and decide in favor of card holder saying, I do not have any check box to click that says I agree or I accept.

So I lost over $300.

akuawood 03-26-2008 01:42 AM

Re: Must "Accept terms" before submitting the order
 
This is brilliant. Thanks for the coding. Works on 4.1.8

Stinkweasels 03-26-2008 08:28 AM

Re: Must "Accept terms" before submitting the order
 
Great mod:D

I may have missed it, but how do you make the submit button look like the rest of your buttons. Not fond of the grey box

Zaja 03-26-2008 09:50 AM

Re: Must "Accept terms" before submitting the order
 
Quote:

Originally Posted by Stinkweasels
Great mod:D

I may have missed it, but how do you make the submit button look like the rest of your buttons. Not fond of the grey box


You can style the button using css.

Stinkweasels 03-28-2008 08:02 AM

Re: Must "Accept terms" before submitting the order
 
Quote:

Originally Posted by Zaja
You can style the button using css.


How would one label it in css?

I'm a novice

Vacman 12-26-2008 11:02 AM

Re: Must "Accept terms" before submitting the order
 
Ah! This is NICE! Works great for 4.1.8

aop 01-13-2009 01:06 PM

Re: Must "Accept terms" before submitting the order
 
I've tried to install this Mod, with no luck.
I haven't changed fast_lane_checkout... because I don't use Fast Lane Check Out. I cleaned my Templates_c directory, etc.
I got the check box with the text (OK), and the Submit Order button (OK); but this one ( submit button ) it doesn't work even after click in the check box.
Any idea what I'm doing wrong ?
Thanks !!

Oktane Design 01-14-2009 04:43 AM

Re: Must "Accept terms" before submitting the order
 
Anybody knows if this mod works with x-cart 4.2?

Thanks a lot


All times are GMT -8. The time now is 02:29 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.