Accecpt terms before checkout with express checkout

On view cart page, before Paypal checkout button there should be a checkbox for term and conditions, which buy have to agree to before paying with paypal express checkout.





THIS IS A MUST

I don’t know about the view cart page, but you can enable terms and conditions for the checkout page in the administration/settings near the bottom. Here is a link on how to set up your terms and conditions page:



[URL=“http://forum.cs-cart.com/showpost.php?p=8530&postcount=7”]http://forum.cs-cart.com/showpost.php?p=8530&postcount=7[/URL]



If you need this somewhere besides the checkout page than the code you need is:


function fn_check_agreement()
{$ldelim}
{if $settings.General.agree_terms_conditions == 'Y'}
if (document.forms[{if $settings.General.one_page_checkout != 'Y'}'summary_form'{else}'order_info_form'{/if}].accept_terms.checked == false) {$ldelim}
alert('{$lang.checkout_terms_n_conditions_alert|escape:javascript}');
return false;
{$rdelim}
{/if}
return true;
{$rdelim}




I tried moving this code, but can’t get it to work so if you need it somewhere else than maybe someone else can help you modify it.



I hope this was some help.



Brandon