X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Terms & Conditions on checkout page (https://forum.x-cart.com/showthread.php?t=59368)

bugaminute 07-11-2011 06:56 PM

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

toddpatterson 07-11-2011 07:53 PM

Re: Terms & Conditions on checkout page
 
Glad I could help :)

2coolbaby 02-23-2012 12:57 PM

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.

mlollar@us.ibm.com 05-10-2012 07:00 AM

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.

vickis 08-10-2012 08:35 AM

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.


All times are GMT -8. The time now is 02:05 AM.

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