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
  #111  
Old 02-24-2010, 08:51 AM
 
collings26 collings26 is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 149
 

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

HI, I've installed this great mod on 4.3 but I am presented with a javascript error on the checkout pages. Any ideas?

Chris
__________________
X-Cart v4.1.9 [unix]
Reply With Quote
  #112  
Old 02-24-2010, 11:52 AM
 
manishp manishp is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 41
 

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

Quote:
Originally Posted by collings26
HI, I've installed this great mod on 4.3 but I am presented with a javascript error on the checkout pages. Any ideas?

Chris

Can you please paste your error or a screenshot of the same?
__________________
X-Cart: 4.2.1
Reply With Quote
  #113  
Old 02-24-2010, 12:01 PM
 
collings26 collings26 is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 149
 

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

Hi, it does not stop it from working, just presents a javascript error when i check the box.

Line: 410
Char: 1
Error: Object Expected
Code: 0
URL: http://www.domainomitted.co.uk/cart.php?mode=checkout&paymentid=5

Thanks
Chris
__________________
X-Cart v4.1.9 [unix]
Reply With Quote
  #114  
Old 03-10-2010, 05:33 AM
 
collings26 collings26 is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 149
 

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

any ideas?
__________________
X-Cart v4.1.9 [unix]
Reply With Quote
  #115  
Old 03-10-2010, 01:53 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

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

Quote:
Originally Posted by collings26
Hi, it does not stop it from working, just presents a javascript error when i check the box.

Line: 410
Char: 1
Error: Object Expected
Try it in another browser like Firefox that has a javascript console to get more information about the error.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #116  
Old 04-20-2010, 09:12 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

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

Hello. I tried link for 4.22 applied update but do not see any changes at all.

I currently disable Fast Checkout option. Does it matter?

thank you for your help.



Quote:
Originally Posted by Zaja
http://www.7dana.com/img/I_agree_demo.gif

1. open skin/customer/main/checkout.tpl and add following code after {capture name=checkout_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_you_are_agree} "{$lng.lbl_terms_n_conditions}" {$lng.lbl_and} "{$lng.lbl_privacy_statement}".
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" />

Thats it! Using this hack, I have reduced the numbers of absurd questions by 30-40%.

New 4.2 and 4.3 version(11-25-2009): http://www.7dana.com/Must-Accept-terms-before-submitting-the-order/
__________________
Reply With Quote
  #117  
Old 04-20-2010, 10:10 AM
 
Pyro Pyro is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 506
 

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

Step two requires an edit to "Open /skin1/modules/Fast_Lane_Checkout/checkout_3_place.tpl"

So I am fairly certain it does need fast lane checkout enabled. To verify, you could try turning fast lane checkout on and seeing if you can now see the mod.

Also, be sure you use the correct steps. http://www.7dana.com/Must-Accept-terms-before-submitting-the-order/ has the correct steps for 4.2.x and 4.3.x
__________________
Best Wishes,
James

4.5.2 Gold (work in progress)
Reply With Quote
  #118  
Old 04-20-2010, 12:13 PM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

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

Just redid it again, enable Fast checkout...

same result no change at all.

run clean, cleare templates cache, refresh
and still no changes at all.

Like I understand I should see check box and if user check it submit button become active. Is it correct?

thank you.
__________________
Reply With Quote
  #119  
Old 04-24-2010, 09:29 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 Yalokin
Just redid it again, enable Fast checkout...

same result no change at all.

run clean, cleare templates cache, refresh
and still no changes at all.

Like I understand I should see check box and if user check it submit button become active. Is it correct?

thank you.

If you don't see any changes than nothing is changed for some reason. It is not possible that you changed the necessary files on the server, deleted cached template files and after that you do not see anything new.

Simply follow these instructions carefully, letter by letter, and success can not escape:
http://www.7dana.com/Must-Accept-terms-before-submitting-the-order/
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote

The following user thanks Zaja for this useful post:
Yalokin (04-29-2010)
  #120  
Old 04-29-2010, 07:34 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

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

Working fine thank you.
without re-installation.
__________________
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 11:31 AM.

   

 
X-Cart forums © 2001-2020