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)

collings26 02-24-2010 08:51 AM

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

manishp 02-24-2010 11:52 AM

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?

collings26 02-24-2010 12:01 PM

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

collings26 03-10-2010 05:33 AM

Re: Must "Accept terms" before submitting the order
 
any ideas?

cherie 03-10-2010 01:53 PM

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.

Yalokin 04-20-2010 09:12 AM

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%. 8O

New 4.2 and 4.3 version(11-25-2009): http://www.7dana.com/Must-Accept-terms-before-submitting-the-order/


Pyro 04-20-2010 10:10 AM

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

Yalokin 04-20-2010 12:13 PM

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.

Zaja 04-24-2010 09:29 AM

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/

Yalokin 04-29-2010 07:34 AM

Re: Must "Accept terms" before submitting the order
 
Working fine thank you.
without re-installation.


All times are GMT -8. The time now is 01:34 AM.

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