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)

Akhor 05-16-2011 12:36 PM

Terms & Conditions on checkout page
 
On the my checkout page (http://shop.highlandshoppe.ab.ca/cart.php?mode=checkout) when teh Terms & Conditions link is clicked, the popover just spins and never loads data. However the T&C page does exist.

http://shop.highlandshoppe.ab.ca/Ter...onditions.html

Where is the template that adds this approve T&C link?

cherie 05-16-2011 05:11 PM

Re: Terms & Conditions on checkout page
 
There is an issue with your slider. You can see it using the same T&C link on register.php and opening the Javascript Console in Firefox. :)

toddpatterson 06-07-2011 03:29 AM

Re: Terms & Conditions on checkout page
 
Our Terms & Conditions and the Privacy Statement both show blank screens as well. Any suggestions?

http://rivervalleydiscount.com/store

Thanks in advance :roll:

toddpatterson 06-07-2011 03:35 AM

Re: Terms & Conditions on checkout page
 
Is this something that needs to be edited in the language files??

Akhor 06-07-2011 06:05 AM

Re: Terms & Conditions on checkout page
 
After trying to come up with a solution for this not working (the JS was fine) I ended up taking the easy way out...

I simply changed the links to open in a new window instead of load into the page.

cherie 06-07-2011 06:32 AM

Re: Terms & Conditions on checkout page
 
A blank screen may be an error that could show up in the log or on screen if debug to screen is enabled in config.php.

JWait 06-07-2011 08:50 AM

Re: Terms & Conditions on checkout page
 
Quote:

Originally Posted by toddpatterson
Is this something that needs to be edited in the language files??


Yes, they "Terms" and "Privacy" are static files that can be edited. There are also option to "show link" (in the help section) and whether they are "active" or not.

Our "terms and conditions" and "privacy statement" are kind of big so we have the full text versions in the help section and smaller versions displayed at checkout in the popup.

toddpatterson 06-07-2011 07:56 PM

Re: Terms & Conditions on checkout page
 
Quote:

Originally Posted by JWait
Yes, they "Terms" and "Privacy" are static files that can be edited. There are also option to "show link" (in the help section) and whether they are "active" or not.

Our "terms and conditions" and "privacy statement" are kind of big so we have the full text versions in the help section and smaller versions displayed at checkout in the popup.


We also have ours displayed in the help section as well. However when a customer goes to checkout and has to click that they have read and agreed to the terms/privacy they have the option then to click on either document to read it. It is when they click on either document (during checkout) that nothing is happening.

cflsystems 06-08-2011 03:08 AM

Re: Terms & Conditions on checkout page
 
You may need to edit the template with these links and change them to link to pageid # - by default they link to alias= so if you have custom pages it won't work

toddpatterson 06-09-2011 11:28 AM

Re: Terms & Conditions on checkout page
 
Ok guys, this is a really stupid one. To fix this error that folks seem to be getting do the following.

Content --> Languages

In the apply filter box, search for terms_and_conditions.

Step 1.

In the terms_and_conditions_newbie_note change the line to something similar to this:

I accept the <a href="http://yourstorenamehere.com/store/Return_Policy.html" onclick="javascript:popupOpen(this.href, '', {width:800,height:600}); return false;" target="_blank">"Terms &amp; Conditions"</a>

In the above we changed it so that when a user clicks on the Terms & Conditions it opens the static page that we created as Return_Policy.html

Step 2.

In the terms_and_conditions_note change the line to something similar to this:

I accept the <a href="http://yourstorenamehere.com/store/Return_Policy.html" onclick="javascript:popupOpen(this.href, '', {width:800,height:600}); return false;" target="_blank">"Terms &amp; Conditions"</a> and <a href="http://yourstorenamehere.com/store/Privacy_Notice.html" target="_blank" onclick="javascript:popupOpen(this.href, '', {width:800,height:600}); return false;">"Privacy statement"</a>

In the above we changed it so that when a user clicks on the Terms & Conditions it opens the static page that we created as Return_Policy.html and then when they click on the Privacy Statement it opens up the static page Privacy_Notice.html


Hope that this helps someone else. Works great for us now :D/

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 08:18 PM.

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