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

agree to terms and conditions

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-28-2012, 01:21 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default agree to terms and conditions

I have the "agree to the terms and conditions" set so a user has to agree before making a purchase. For some reason when I or anyone else clicks the link to actually VIEW the terms and conditions before agreeing to them, the pop up window opens up but is empty. Worse than that is that the whole checkout page freezes. You have to refresh the screen and re-enter you address details to checkout. I'm using Alterd Carts OPC mod. Here is the code that us used for the link to view the terms on the checkout page.

Code:
Yes, I have read and agree to the <a href="javascript:checkoutViewTerms();"><span style="text-decoration:underline;">terms and conditions</span></a>.

that whole code is stored in lbl_co_agree_terms. I don't know where it is looking for the terms and conditions, I have an embedded static page with mine. Is that the problem?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #2  
Old 06-28-2012, 01:36 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: agree to terms and conditions

In 4.4.3 and up the terms have change. There are two changes that need to be made:

1. http://www.alteredcart.com/support/knowledgebase/X-Cart-Modules/One-Page-Checkout/Using-X-Cart-4.4.3-and-g...nd-conditions/

2. A change is required to the skin/common_files/modules/Checkout_One/checkout_one.js file. I downloaded this from your server, changed this and attached it here. You will need to upload it to your server.
Attached Files
File Type: zip checkout_one.zip (11.9 KB, 210 views)
Reply With Quote
  #3  
Old 06-29-2012, 06:27 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: agree to terms and conditions

Hi Bill,
I uploaded the new .js file so now the window doesn't freeze when a customer tries to view the terms and conditions. However, by following the instructions from your site on changing the link to point to the terms and conditions page I still get an empty terms window on OPC. The only thing that this change does is open my terms and conditions page when I hit the X to close the empty window. How do I get my info to show up IN the window?
Thanks

Quote:
2. Change the link to point to the static page. Open skin/common_files/modules/Checkout_One/checkout_one_home.tpl file and change this code near line 68 from:

<td align="right"><a href="javascript:checkoutEraseModal('terms');"><im g src="{$ImagesDir}/checkout_one_close.gif" alt="close" width="16" height="19" border="0" style="padding-top:5px;" /></a></td>

to:

<td align="right"><a target="_blank" href="pages.php?pageid=3;"><img src = "{$ImagesDir}/checkout_one_close.gif" alt="close" width="16" height="19" border="0" style="padding-top:5px;" /></a></td>
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #4  
Old 07-03-2012, 07:30 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: agree to terms and conditions

To get the terms to display in the modal window, follow the instructions in step 1 to create the new text variable to hold the terms and conditions. You will need to restore the code in the checkout_one.tpl file to the original code.
Reply With Quote

The following user thanks wjbrewer for this useful post:
keystone (07-05-2012)
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 04:26 AM.

   

 
X-Cart forums © 2001-2020