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)

kevfromwiganinlancashire 04-30-2010 12:28 PM

Re: Must "Accept terms" before submitting the order
 
Thank you for this mod.

kev

minfinger 05-03-2010 08:58 AM

Re: Must "Accept terms" before submitting the order
 
Works perfectly on my site!!!

Acquamarina 10-12-2010 08:39 AM

Re: Must "Accept terms" before submitting the order
 
Can it be used on 4.1.9? I would love to implement this on my site.

Thank you!

ScrapOrchard 01-25-2011 10:47 AM

Re: Must "Accept terms" before submitting the order
 
Works beautifully in 4.3.2!

graffix 08-16-2011 11:52 AM

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

Originally Posted by manishp
Looks like the button looks disabled in IE but not in Firefox. However, using the same Firefox, when I use your demo, the button does look disabled. Did you make any changes to get the appearances of the button to appear as disabled in Firefox as well?


Installed mod and working on 4.4.3. The firefox issue for me ended up being related to Firebug, not FireFox at all. If you inspect the code in firebug you will see that the button attribute is set to disabled, but it doesn't display it as such. Disable firebug and the button greys and works fine. Not sure why it's working on his site though...looked through the code and it seems to be the same, perhaps a different version of xcart?

Thanks for the mod

CottonAge.com 12-01-2011 09:48 AM

Re: Must "Accept terms" before submitting the order
 
anybody tried it for XC v4.4.4?

carpeperdiem 12-01-2011 11:14 AM

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

Originally Posted by CottonAge.com
anybody tried it for XC v4.4.4?


Mod not needed in 4.4.x
Function is factory stock.

RPZ620 07-08-2012 02:14 PM

Re: Must "Accept terms" before submitting the order
 
Now that it is stock in x-cart - can it be set up based on membership level - for example, for wholesalers who have payment terms, we can have some wording to protect us against declining they ordered the product after we have already shipped?

we wouldn't want it at all for non-wholesale customers.

cflsystems 07-09-2012 07:21 AM

Re: Must "Accept terms" before submitting the order
 
An if statement can be used for customer membership level to show it or not and what to load with language variables, there are 2-3 files to change though

wwoj 12-04-2012 07:13 PM

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!


Thank you so much. This works fantastic. I really appreciate your help.


All times are GMT -8. The time now is 03:03 PM.

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