| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Must "Accept terms" before submitting the order | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#51
|
|||||||||
|
|||||||||
![]() Probally a real easy one for someone, i have a java script error when installing the mod "must_accept_terms.zip". I am following the 4.1 instruction and the error code states the error lies at the following:
Line 18 Char 12 Expected '/" Code 0 How i have entered it is from below and line 18 is {/literal}, any ideas ? {capture name=dialog} <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> |
|||||||||
#52
|
|||||||||
|
|||||||||
![]() Can no one follow up on this for me
|
|||||||||
#53
|
|||||||
|
|||||||
![]() did someone made this work for 3.5.9 version, I tried for hours tonight but I can't get it to work. All shows up but the third part of the code is not showing up, the "normal" submit button is available and it can be clicked without checking the box. Well the checkout.tpl is completely different in version 3.5.9
I also have a 4.1.3 version running and there it works like a charm. Maybe someone did it already and know where to put the third code in, thanks, Andy
__________________
X-Cart version 3.5.9 (online) X-Cart Version 4.0.19 (online) X-Cart Version 4.1.3 (in dev) PHP 4.4.4 MySQL 4.1.21 |
|||||||
#54
|
|||||||||
|
|||||||||
![]() Andy, download this hack again, version 3.5.x is included.
http://www.7dana.com/free-xcart-mods.phtml |
|||||||||
#55
|
|||||||
|
|||||||
![]() zaja how can made for must "Accept terms" before register.
__________________
Gonzalo Astudillo Pizarro | https://about.me/gonzaloastudillo |
|||||||
#56
|
|||||||||
|
|||||||||
![]() Ok, registration page hack:
1. open skin/customer/main/register.tpl and add following code after {capture name=dialog}: Code:
2. replace: {$lng.txt_terms_and_conditions_newbie_note} with: Code:
3. replace: {include file="buttons/submit.tpl" type="input" style="button" href="javascript: return check_registerform_fields();"} with: Code:
|
|||||||||
#57
|
|||||||
|
|||||||
![]() nice!! thanks!
![]()
__________________
Gonzalo Astudillo Pizarro | https://about.me/gonzaloastudillo |
|||||||
#58
|
|||||||
|
|||||||
![]() thanks Zaja, now it works nice in 3.5.9
__________________
X-Cart version 3.5.9 (online) X-Cart Version 4.0.19 (online) X-Cart Version 4.1.3 (in dev) PHP 4.4.4 MySQL 4.1.21 |
|||||||
#59
|
|||||||
|
|||||||
![]() Cheers Zaja, works great.
Only problem I have is that I want to make the 'Submit' Button on the Registration Page in the centre, but for some unknown reason it's slightly to the right of centre. Any ideas? Man thanks.
__________________
Location: UK X-Cart: Gold 4.4.2, Status: Finalizing Template: Colors Free Mods: Colour Coded Orders, FAQ Manager Paid Mods: None... yet. Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13 |
|||||||
#60
|
|||||||
|
|||||||
![]() Hi Zaja, I just wanted to say a big THANKYOU for this mod, I've used it on my checkout page, and also on my registration page, and it looks great, I'm sure it will save a lot of hassles in the future.
Much appreciated!
__________________
X-Cart Gold Version 4.3.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|