Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Must "Accept terms" before submitting the order

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 08-19-2007, 01:33 PM
 
Realsecurity Realsecurity is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Bexhill
Posts: 128
 

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

Worked fine in 4.1.8 as well, just configured loooks good!
__________________
SURECOM XCART V4.1.8
Reply With Quote
  #72  
Old 01-24-2008, 04:42 PM
 
sales@webosusa.com sales@webosusa.com is offline
 

Senior Member
  
Join Date: Nov 2007
Location: Australia
Posts: 118
 

Talking 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!
__________________
Pedro
digitalnotions.i2u.shop
shop.modestclassy.com.au4.1.9 X-Cart
X-Cart
Business 5.3.6.0
Multi-vendor 5.3.6.0


Reply With Quote
  #73  
Old 02-23-2008, 12:14 AM
 
shwekhaw shwekhaw is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 148
 

Default 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.
__________________
X-Cart Gold Plus 4.5.5
Checkout ONE
Checkout ONE DPM
BCSE CIM
Apache
Linux
Reply With Quote
  #74  
Old 03-26-2008, 01:42 AM
 
akuawood akuawood is offline
 

Senior Member
  
Join Date: Jul 2007
Location: Caversham
Posts: 125
 

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

This is brilliant. Thanks for the coding. Works on 4.1.8
__________________
X-Cart Gold-4.5.5
Sheabutter Cottage
Reply With Quote
  #75  
Old 03-26-2008, 08:28 AM
 
Stinkweasels Stinkweasels is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 45
 

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

Great mod

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
__________________
X-Cart Gold v4.1.10

www.stinkweasels.com
Reply With Quote
  #76  
Old 03-26-2008, 09:50 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

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

Quote:
Originally Posted by Stinkweasels
Great mod

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.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #77  
Old 03-28-2008, 08:02 AM
 
Stinkweasels Stinkweasels is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 45
 

Default 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
__________________
X-Cart Gold v4.1.10

www.stinkweasels.com
Reply With Quote
  #78  
Old 12-26-2008, 11:02 AM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

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

Ah! This is NICE! Works great for 4.1.8
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #79  
Old 01-13-2009, 01:06 PM
 
aop aop is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: los angeles
Posts: 96
 

Default 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 !!
__________________
www.furniturevision.com
Version 3.2.2 retired
Updated to 4.0.8 - retired
Updated to 4.1.9 - retired
Updated to 4.4
Reply With Quote
  #80  
Old 01-14-2009, 04:43 AM
 
Oktane Design Oktane Design is offline
 

Member
  
Join Date: Apr 2008
Posts: 29
 

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

Anybody knows if this mod works with x-cart 4.2?

Thanks a lot
__________________
X-Cart version 4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:30 AM.

   

 
X-Cart forums © 2001-2020