Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Terms & Conditions on checkout page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-11-2011, 06:56 PM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default Re: Terms & Conditions on checkout page

Thanks for posting that Todd!

I ended up using this code and it works as a popup in the same window. It goes in the same places Todd mentioned

I accept the (<a onclick="newwindow=window.open('/path to terms-conditions.html here','pop','width=820,height=870, resizable, scrollbars' );return false" href="#">Terms & Conditions</a>) &amp; (<a onclick="newwindow=window.open('/path to terms-conditions.html here privacy.htm here','pop','width=820,height=870, resizable, scrollbars' );return false" href="#">Privacy Statement</a>)

I use the absolute server path instead of the URL because it allows me to use the database on my development server. Once done I move to production and it still works.

Hope this helps someone
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
Reply With Quote
  #12  
Old 07-11-2011, 07:53 PM
  toddpatterson's Avatar 
toddpatterson toddpatterson is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Arkansas
Posts: 140
 

Default Re: Terms & Conditions on checkout page

Glad I could help
__________________
B&T sales
xCart 5 Business
Core Version: 5.3.5
Reply With Quote
  #13  
Old 02-23-2012, 12:57 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default Re: Terms & Conditions on checkout page

Does not work in 4.4.4 I get the error:

An error occurred while processing a request. Please refresh the page.

If the problem still persists after refreshing the page please contact us on the matter.

My page was showing blank. The info is in the language files.
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote
  #14  
Old 05-10-2012, 07:00 AM
 
mlollar@us.ibm.com mlollar@us.ibm.com is offline
 

Newbie
  
Join Date: May 2012
Posts: 1
 

Default Re: Terms & Conditions on checkout page

Finally, someone that put exactly what to do in their response. Thanks very much. I can't believe xCart 4.4.4 didn't work right out of the gate on our new store install.
__________________
4.4.4
Reply With Quote
  #15  
Old 08-10-2012, 08:35 AM
 
vickis vickis is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 47
 

Default Re: Terms & Conditions on checkout page

Quote:
Originally Posted by 2coolbaby
Does not work in 4.4.4 I get the error:

An error occurred while processing a request. Please refresh the page.

If the problem still persists after refreshing the page please contact us on the matter.

My page was showing blank. The info is in the language files.

Did you ever find an answer to this? I get the same error in 4.4.5 after trying these edits in the language file.


Edited to add the way I fixed this:

In 4.4.5 using Fast lane checkout, do the following edits to get your terms and privacy statement in those popup windows.

File: /common_files/modules/Fast_Lane_Checkout/checkout_3_place.tpl


original:

Code:
<div class="terms_n_conditions center"> <label for="accept_terms"> <input type="checkbox" name="accept_terms" id="accept_terms" value="Y" /> {$lng.txt_terms_and_conditions_note|substitute:"terms_url":"`$xcart_web_dir`/pages.php?alias=conditions":"privacy_url":"`$xcart_web_dir`/pages.php?alias=business"} </label> </div>


change to:

Code:
<div class="terms_n_conditions center"> <label for="accept_terms"> <input type="checkbox" name="accept_terms" id="accept_terms" value="Y" /> {$lng.txt_terms_and_conditions_note|substitute:"terms_url":"`$xcart_web_dir`/pages.php?pageid=4":"privacy_url":"`$xcart_web_dir`/pages.php?pageid=3"} </label> </div>

change the red/bold page #s there to your page.
__________________
currently: 4.7.1

previously: XCart Version 4.4.5 Pro
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 09:29 AM.

   

 
X-Cart forums © 2001-2020