To make "Terms and Conditions" a link:
- If you have the One page checkout option enabled (click on the Settings link in the ADMINISTRATION side box on the right of your administrator panel and check the One page checkout checkbox at the bottom):
- Open the payment_methods.tpl file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/cart_pages directory of your CS-Cart installation, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront.
- Find the following part of code there:
{if $settings.General.agree_terms_conditions == 'Y' && $settings.General.one_page_checkout == 'Y'}
<div align="center"><input type="checkbox" id="id_accept_terms" name="accept_terms" value="Y" class="valign" /><label for="id_accept_terms" class="valign"> {$lang.checkout_terms_n_conditions}</label><br /> </div>
{/if}
- Replace it with the following part of code:
{if $settings.General.agree_terms_conditions == 'Y' && $settings.General.one_page_checkout == 'Y'}
<div align="center"><input type="checkbox" id="id_accept_terms" name="accept_terms" value="Y" class="valign" /><label for="id_accept_terms" class="valign"> By checking this checkbox, you accept the <a href="#" onclick="window.open('terms.html', 'terms', 'width=200px, height=300px, left=200,top=100,scrollbars=yes, resizable=yes');return false">Terms and Conditions</a></label><br /> </div>
{/if}
- Save the file.
- If the One page checkout option is disabled:
- Open the profiles_info.tpl file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/profiles_pages directory of your CS-Cart installation, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront.
- Find the following part of code there:
{if $settings.General.agree_terms_conditions == 'Y'}
<div align="left"><input type="checkbox" id="id_accept_terms" name="accept_terms" value="Y" class="valign" /><label for="id_accept_terms" class="valign"> {$lang.checkout_terms_n_conditions}</label><br /> </div>
{/if}
- Replace it with the following part of code:
{if $settings.General.agree_terms_conditions == 'Y'}
<div align="left"><input type="checkbox" id="id_accept_terms" name="accept_terms" value="Y" class="valign" /><label for="id_accept_terms" class="valign"> By checking this checkbox, you accept the <a href="#" onclick="window.open('terms.html', 'terms', 'width=200px, height=300px, left=200,top=100,scrollbars=yes, resizable=yes');return false">Terms and Conditions</a></label><br /> </div>
{/if}
- Save the file.
To create a page for the "Terms and Conditions" link:
- Create the terms.html file with the following content in the root directory of your CS-Cart installation.
<html>
<head>
<title>Terms and conditions</title>
<meta http-equiv="content-type" content="text/html;">
</head>
<body>
<table cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td align="center">
TEXT
</td>
</tr>
<tr>
<td align="center">
<a href="javascript: window.close();" class="underlined">Close</a></td>
</tr>
</table>
</body>
</html>
where TEXT is your text for the Terms and conditions page.
- Save the file.