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
  #121  
Old 04-30-2010, 12:28 PM
  kevfromwiganinlancashire's Avatar 
kevfromwiganinlancashire kevfromwiganinlancashire is offline
 

X-Adept
  
Join Date: Nov 2004
Location: Appley Bridge
Posts: 563
 

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

Thank you for this mod.

kev
__________________
Php 5.4.16-36.el7_1
MySQL 5.5.41-2.el7_0
Apache
2.4.6-31.el7.centos



4.6.x stalled for now

5.2.6 developing
Reply With Quote
  #122  
Old 05-03-2010, 08:58 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

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

Works perfectly on my site!!!
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #123  
Old 10-12-2010, 08:39 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default 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!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #124  
Old 01-25-2011, 10:47 AM
 
ScrapOrchard ScrapOrchard is offline
 

eXpert
  
Join Date: Mar 2008
Posts: 243
 

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

Works beautifully in 4.3.2!
__________________
www.scraporchard.com
X-Cart Pro Version 4.5.5

Altered Cart: One Page Checkout, OnSale, Buy Together, Download Expander, Smart Search, Shop by Filters
Gahela: Gahela Support System
The xCart Store: xBanners, xAccess, xMenus
Reply With Quote
  #125  
Old 08-16-2011, 11:52 AM
 
graffix graffix is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 39
 

Default 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
__________________
version 4.4.3
X-payments
sales and stats
Reply With Quote
  #126  
Old 12-01-2011, 09:48 AM
  CottonAge.com's Avatar 
CottonAge.com CottonAge.com is offline
 

eXpert
  
Join Date: Jan 2008
Location: Orange County, California
Posts: 244
 

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

anybody tried it for XC v4.4.4?
__________________
CottonAge.com - v4.4.4 - Gold
Mirko.com - v4.1.12 - Gold

We sell Bathrobes, Slippers, Towels & more at wholesale prices...
Reply With Quote
  #127  
Old 12-01-2011, 11:14 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #128  
Old 07-08-2012, 02:14 PM
 
RPZ620 RPZ620 is offline
 

Member
  
Join Date: Mar 2011
Posts: 13
 

Default 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.
__________________
X-Cart 4.5.2
X-Auth
One Page Checkout
CDSEO
Reply With Quote
  #129  
Old 07-09-2012, 07:21 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #130  
Old 12-04-2012, 07:13 PM
 
wwoj wwoj is offline
 

Newbie
  
Join Date: Nov 2012
Posts: 2
 

Default 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.
__________________
Version 4.1.9
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 12:23 PM.

   

 
X-Cart forums © 2001-2020