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)
-   -   agree to terms and conditions (https://forum.x-cart.com/showthread.php?t=64131)

keystone 06-28-2012 01:21 PM

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?

wjbrewer 06-28-2012 01:36 PM

Re: agree to terms and conditions
 
1 Attachment(s)
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.

keystone 06-29-2012 06:27 AM

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>


wjbrewer 07-03-2012 07:30 PM

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.


All times are GMT -8. The time now is 09:54 AM.

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