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
  #31  
Old 08-02-2006, 09:27 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

zaja its awsome! good catch on teh language boomer.
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #32  
Old 08-02-2006, 09:30 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

Quote:
Originally Posted by 2coolbaby
I have 4.0.18, but I do not think there is that much difference. I would think it would work. Do me a favor and go to my site and go through the purchase process... don't fill in credit card info, just see if the click box and submit works for you if you check it. This will tell us if it is implemntation of the script or if it is your browser or computer.

Here is the store:

http://www.dinnerandamurder.com/store/catalog/index.html

works on win xp pro with ie 6.0
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #33  
Old 08-26-2006, 08:21 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

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

anybody got zaja's mod to work with ez check out?
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #34  
Old 08-26-2006, 12:42 PM
  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

Installation for ezCheckout users on 4.0.18, 4.0.19:

1. open skin/customer/main/checkout.tpl and add following code at the top of the file:
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_you_are_agree} <A href="help.php?section=conditions" target="_blank">"{$lng.lbl_terms_n_conditions}"</A> {$lng.lbl_and} <A href="help.php?section=business" target="_blank">"{$lng.lbl_privacy_statement}"</A>.
with:
Code:
<input name="agreecheck" type="checkbox" onclick="agreesubmit(this)" /> {$lng.txt_you_are_agree} "{$lng.lbl_terms_n_conditions}" {$lng.lbl_and} "{$lng.lbl_privacy_statement}".
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. Clean templates_c directory!

Thats it!
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #35  
Old 08-26-2006, 02:12 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

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

Thanks Zaja!

1. How do I clean Template_c directory? (in simple newbie terms)

2. What effect does cleaning Template_c directory have on the store?
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #36  
Old 08-30-2006, 11:16 PM
  2019's Avatar 
2019 2019 is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 76
 

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

thank you guys
__________________
// x-cart 4.1.9

X-CART CSS SKIN
XC SEO
IP Addresses in Users Online for all users
Color coded order status
Reply With Quote
  #37  
Old 09-11-2006, 10:04 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

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

Is there a way to have it so if they did Not check the check box and tryed to hit submit that a popup would show telling them they have to agree to the terms and conditions?

Thanks
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #38  
Old 09-11-2006, 11:45 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

Yes, very easy..using javascript form validation.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #39  
Old 09-11-2006, 01:32 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

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

Details would be great
__________________
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
Reply With Quote
  #40  
Old 09-11-2006, 01:56 PM
  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

Ahh yes...sorry, I wasn't enough clear. I mean, this can be done very easy, but can't be part of this mode...different concept. The basic idea of the "Accept terms" mod is disabling the Submit button until the check box indicate compliance.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:12 AM.

   

 
X-Cart forums © 2001-2020