Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

View File

@@ -1,352 +1,187 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="checkout_add" name="checkout_add" method="post" action="">
<form id="add" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<center>
{translate module=checkout}
title_add
{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_name
{/translate}
</td>
<td width="50%">
<input type="text" name="checkout_name" value="{$VAR.checkout_name}" {if $checkout_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_description
{/translate}
</td>
<td width="50%">
<textarea name="checkout_description" cols="40" rows="2">{$VAR.checkout_description}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_active
{/translate}
</td>
<td width="50%">
{if $VAR.checkout_active != ""}
{ $list->bool("checkout_active", $VAR.checkout_active, "form_menu") }
{else}
{ $list->bool("checkout_active", "1", "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_graphic_url
{/translate}
</td>
<td width="50%">
<input type="text" name="checkout_graphic_url" value="{$VAR.checkout_graphic_url}" {if $checkout_grapic_url == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_checkout_plugin
{/translate}
</td>
<td width="50%">
{ $list->menu_files("", "checkout_checkout_plugin", $VAR.checkout_checkout_plugin, "checkout_plugin", "", ".php", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_allow_new
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_allow_recurring
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_allow_trial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
{ $list->bool("checkout_allow_new", $VAR.checkout_allow_new, "form_menu") }
</td>
<td width="33%">
{ $list->bool("checkout_allow_recurring", $VAR.checkout_allow_recurring, "form_menu") }
</td>
<td width="33%">
{ $list->bool("checkout_allow_trial", $VAR.checkout_allow_trial, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_total_minimum
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_total_maximum
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_max_decline_attempts
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
<input type="text" name="checkout_total_minimum" value="{$VAR.checkout_total_minimum}" {if $checkout_total_minimum == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="33%">
<input type="text" name="checkout_total_maximum" value="{$VAR.checkout_total_maximum}" {if $checkout_total_maximum == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="33%">
<input type="text" name="checkout_max_decline_attempts" value="{$VAR.checkout_max_decline_attempts}" {if $checkout_max_decline_attempts == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_required_groups
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_excluded_products
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
{ $list->menu_multi($VAR.checkout_required_groups, "checkout_required_groups", "group", "name", "5", "5", "form_menu") }
</td>
<td width="33%">
{ $list->menu_multi($VAR.checkout_excluded_products, "checkout_excluded_products", "product", "sku", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_manual_approval_all
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_recur
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->bool("checkout_manual_approval_all", $VAR.checkout_manual_approval_all, "form_menu") }
</td>
<td width="50%">
{ $list->bool("checkout_manual_approval_recur", $VAR.manual_approval_recur, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_manual_approval_amount
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_currency
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_manual_approval_amount" value="{$VAR.checkout_manual_approval_amount}" {if $checkout_manual_approval_amount == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_manual_approval_currency, "checkout_manual_approval_currency", "currency", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_manual_approval_country
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_group
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($VAR.checkout_manual_approval_country, "checkout_manual_approval_country", "country", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_manual_approval_group, "checkout_manual_approval_group", "group", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_default_when_amount
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_default_when_currency
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_default_when_amount" value="{$VAR.checkout_default_when_amount}" {if $checkout_default_when_amount == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_default_when_currency, "checkout_default_when_currency", "currency", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_default_when_country
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_default_when_group
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($VAR.checkout_default_when_country, "checkout_default_when_country", "country", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
{ $list->menu_multi($VAR.checkout_default_when_group, "checkout_default_when_group", "group", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_allowed_currencies
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_email_template
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($VAR.checkout_allowed_currencies, "checkout_allowed_currencies", "currency", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
<textarea name="checkout_email" cols="40" rows="4">{$VAR.checkout_email_template}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%"></td>
<td width="50%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="checkout:view">
<input type="hidden" name="_page_current" value="checkout:add">
<input type="hidden" name="do[]" value="checkout:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=name}</td>
<td style="width: 50%;"><input type="text" name="checkout_name" value="{$VAR.checkout_name}" {if $checkout_name == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=description}</td>
<td style="width: 50%;"><textarea name="checkout_description" cols="40" rows="2">{$VAR.checkout_description}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=active}</td>
<td style="width: 50%;">
{if $VAR.checkout_active != ''}
{$list->bool('checkout_active',$VAR.checkout_active,'form_menu')}
{else}
{$list->bool('checkout_active','1','form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=graphic_url}</td>
<td style="width: 50%;"><input type="text" name="checkout_graphic_url" value="{$VAR.checkout_graphic_url}" {if $checkout_grapic_url == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=checkout_plugin}</td>
<td style="width: 50%;">{$list->menu_files('','checkout_checkout_plugin',$VAR.checkout_checkout_plugin,'checkout_plugin','','.php','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;">{osb f=tf field=allow_new}</td>
<td style="width: 33%;">{osb f=tf field=allow_recurring}</td>
<td style="width: 33%;">{osb f=tf field=allow_trial}</td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->bool('checkout_allow_new',$VAR.checkout_allow_new,'form_menu')}</td>
<td style="width: 33%;">{$list->bool('checkout_allow_recurring',$VAR.checkout_allow_recurring,'form_menu')}</td>
<td style="width: 33%;">{$list->bool('checkout_allow_trial',$VAR.checkout_allow_trial,'form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;">{osb f=tf field=total_minimum}</td>
<td style="width: 33%;">{osb f=tf field=total_maximum}</td>
<td style="width: 33%;">{osb f=tf field=max_decline_attempts}</td>
</tr>
<tr valign="top">
<td style="width: 33%;"><input type="text" name="checkout_total_minimum" value="{$VAR.checkout_total_minimum}" {if $checkout_total_minimum == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 33%;"><input type="text" name="checkout_total_maximum" value="{$VAR.checkout_total_maximum}" {if $checkout_total_maximum == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 33%;"><input type="text" name="checkout_max_decline_attempts" value="{$VAR.checkout_max_decline_attempts}" {if $checkout_max_decline_attempts == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td style="width: 33%;">{osb f=tf field=required_groups}</td>
<td style="width: 33%;">{osb f=tf field=excluded_products}</td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->menu_multi($VAR.checkout_required_groups,'checkout_required_groups','group','name','5','5','form_menu')}</td>
<td style="width: 33%;">{$list->menu_multi($VAR.checkout_excluded_products,'checkout_excluded_products','product','sku','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=manual_approval_all}</td>
<td style="width: 50%;">{osb f=tf field=manual_approval_recur}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->bool('checkout_manual_approval_all',$VAR.checkout_manual_approval_all,'form_menu')}</td>
<td style="width: 50%;">{$list->bool('checkout_manual_approval_recur',$VAR.manual_approval_recur,'form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=manual_approval_amount}</td>
<td style="width: 50%;">{osb f=tf field=manual_approval_currency}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><input type="text" name="checkout_manual_approval_amount" value="{$VAR.checkout_manual_approval_amount}" {if $checkout_manual_approval_amount == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_manual_approval_currency,'checkout_manual_approval_currency','currency','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=manual_approval_country}</td>
<td style="width: 50%;">{osb f=tf field=manual_approval_group}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_manual_approval_country,'checkout_manual_approval_country','country','name','5','5','form_menu')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_manual_approval_group,'checkout_manual_approval_group','group','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=default_when_amount}</td>
<td style="width: 50%;">{osb f=tf field=default_when_currency}</td>
</tr>
<tr valign="top">
<td style="width: 50%;"><input type="text" name="checkout_default_when_amount" value="{$VAR.checkout_default_when_amount}" {if $checkout_default_when_amount == true}class="form_field_error"{/if} size="5"/> {$list->currency_iso('')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_default_when_currency,'checkout_default_when_currency','currency','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td style="width: 50%;">{osb f=tf field=default_when_country}</td>
<td style="width: 50%;">{osb f=tf field=default_when_group}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_default_when_country,'checkout_default_when_country','country','name','5','5','form_menu')}</td>
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_default_when_group,'checkout_default_when_group','group','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 50%;">{osb f=tf field=allowed_currencies}</td>
<td style="width: 50%;">{osb f=tf field=email_template}</td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->menu_multi($VAR.checkout_allowed_currencies,'checkout_allowed_currencies','currency','name','5','5','form_menu')}</td>
<td style="width: 50%;"><textarea name="checkout_email" cols="40" rows="4">{$VAR.checkout_email_template}</textarea></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,19 +1,22 @@
{ $block->display("core:top_clean") }
{$method->exe("checkout","admin_preview")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$block->display('core:top_clean')}
{$method->exe($meth.0,'admin_preview')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{if $results == 0}
{translate module=cart}
empty
{/translate}
{translate module=cart}empty{/translate}
{else}
{if $SESS_LOGGED != "1"}
{ $block->display("account:login") }
{ $block->display("account:user_login") }
{else}
<!-- LOOP THROUGH EACH RECORD -->
<div id="cart_items" {style_hide}>
<div id="cart_items" {osb f=style_hide}>
{foreach from=$cart item=cart}
<DIV id="{$cart.id}">
{if $cart.cart_type == "2"}
@@ -21,7 +24,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
@@ -104,7 +107,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
@@ -175,7 +178,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
@@ -364,7 +367,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
@@ -599,7 +602,7 @@
{if $VAR.option!=''}{$method->exe("checkout","checkoutoption")}{if $plugin_template != false}{$block->display($plugin_template)}{/if}{/if}
</div>
<p id="checkout_options_show" {style_hide}>
<p id="checkout_options_show" {osb f=style_hide}>
<a href="#" onClick="document.getElementById('checkout_confirm_div').style.display='none';document.getElementById('checkout_options_show').style.display='none';document.getElementById('checkout_options').style.display='block';">View More Payment Options</a>
</p>

View File

@@ -1,50 +1,61 @@
var http=getHTTPObject();
var last_checkout_id = '{/literal}{$checkout.fields.id}{literal}';
function changeCheckoutOption(option,type,invoice_id,account_id) {
var doRedirect=false;
var noConfirm=false;
if(type=='invoice' || type=='multi')
var url ='?_page=invoice:checkoutoption&option='+option+'&_escape=1&invoice_id='+invoice_id;
else
var url ='?_page=checkout:checkoutoption&option='+option+'&_escape=1';
if(account_id) url += '&admin=1&account_id='+account_id;
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
try { document.getElementById('checkout_options_show').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_confirm_div').innerHTML = http.responseText } catch(e) {}
try { document.getElementById('checkout_confirm_div').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_options').style.display='none'; } catch(e) {}
try { doRedirect=document.getElementById('doredirect').value } catch(e) { doRedirect=false; }
try { noConfirm=document.getElementById('noconf').value } catch(e) { noConfirm=false; }
if(doRedirect=='true') if(noConfirm) {checkoutNow(0);} else {verifyCheckout();}
}
}
http.send(null);
}
var last_checkout_id = '{$checkout.fields.id}';
function changeCheckoutOption(option,type,invoice_id,account_id) {
var doRedirect=false;
var noConfirm=false;
if(type=='invoice' || type=='multi')
var url ='?_page=invoice:checkoutoption&option='+option+'&_escape=1&invoice_id='+invoice_id;
else
var url ='?_page=checkout:checkoutoption&option='+option+'&_escape=1';
if(account_id)
url += '&admin=1&account_id='+account_id;
http.open('GET',url,true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
try {document.getElementById('checkout_options_show').style.display='block';} catch(e) {}
try {document.getElementById('checkout_confirm_div').innerHTML = http.responseText} catch(e) {}
try {document.getElementById('checkout_confirm_div').style.display='block';} catch(e) {}
try {document.getElementById('checkout_options').style.display='none';} catch(e) {}
try {doRedirect=document.getElementById('doredirect').value} catch(e) {doRedirect=false;}
try {noConfirm=document.getElementById('noconf').value} catch(e) {noConfirm=false;}
if(doRedirect=='true') if(noConfirm) {checkoutNow(0);} else {verifyCheckout();}
}
}
http.send(null);
}
function getCheckoutOption() {
return getElementById("checkout_option").value;
}
function checkoutNow(type) {
try { document.getElementById('submit_checkout_form').disabled=true; } catch(e) {}
try { document.getElementById('checkout_form').submit(); } catch(e) { alert('Unable to submit checkout form for processing'); }
}
}
function checkoutNow(type) {
try {document.getElementById('submit_checkout_form').disabled=true;} catch(e) {}
try {document.getElementById('checkout_form').submit();} catch(e) {alert('Unable to submit checkout form for processing');}
}
function verifyCheckout() {
if (confirm(confirmCheckoutMsg)) {
checkoutNow(0);
if (confirm(confirmCheckoutMsg)) {
checkoutNow(0);
} else {
document.getElementById('checkout_confirm_div').style.display='none';
document.getElementById('checkout_options_show').style.display='none';
document.getElementById('checkout_options').style.display='block';
}
}
}
function enter_new_card() {
try { document.getElementById('new_card').value=1; } catch(e) {}
try {document.getElementById('new_card').value=1;} catch(e) {}
document.getElementById('onfile').style.display='none';
document.getElementById('newcard').style.display='block';
}
function editSavedCard(admin) {
try{var id=document.getElementById('account_billing_id').value;}catch(e){var id=false;}
try{var id=document.getElementById('account_billing_id').value;}catch(e){var id=false;}
if(id) {
if(admin) {
var url = '?_page=account_billing:view&id='+id;
@@ -53,4 +64,4 @@ function editSavedCard(admin) {
}
document.location=url;
}
}
}

View File

@@ -1,689 +1,243 @@
{if $SESS_LOGGED != "1"}
{ $block->display("account:login") }
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{if $SESS_LOGGED != '1'}
{$block->display('account:user_login')}
{else}
{$method->exe("checkout","preview")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{$method->exe('checkout','preview')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{if $results == 0}
{translate module=cart}
empty
{/translate}
<br><br>
{$block->display("product:cat")}
{t}Your cart is empty, please select one or more products to continue{/t}<br/>
<br/>
{$block->display('product_cat:user_menu')}
{else}
<script language="javascript">var confirmCheckoutMsg='{translate module=checkout}redirect{/translate}';</script>
<script src="themes/default/blocks/checkout/ajax.js" type="text/javascript"></script>
<script type="text/javascript" src="themes/default/blocks/checkout/ajax.js"></script>
<script type="text/javascript">
<!--
var confirmCheckoutMsg='{t}Thank you! We will now finalize your purchase and forward you to the secure payment area.{/t}';
<!-- CHECKOUT CONFIRM -->
<div id="checkout_confirm_div">
{if $VAR.option!=''}{$method->exe("checkout","checkoutoption")}{if $plugin_template != false}{$block->display($plugin_template)}{/if}{/if}
</div>
{literal}
function CurrencyChange(obj) {
document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&cyid='+obj.value;
}
function addDiscount() {
var discount = document.getElementById("discount").value;
document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&discount='+discount+'&do[]=checkout:adddiscount';
}
{/literal}
//-->
</script>
<p id="checkout_options_show" {style_hide}>
<a href="#" onClick="document.getElementById('checkout_confirm_div').style.display='none';document.getElementById('checkout_options_show').style.display='none';document.getElementById('checkout_options').style.display='block';">View More Payment Options</a>
</p>
<!-- CHECKOUT OPTIONS -->
<div id="checkout_options">
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td class="table_heading">{translate module=cart}payment_option{/translate} </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="4" cellpadding="3" bgcolor="#FFFFFF">
{if $checkout}
{foreach from=$checkout item=checkout key=key}
<tr valign="top">
<td width="20%"><a href="javascript:void(0);" onClick="changeCheckoutOption({$checkout.fields.id},'checkout',false,0)">{if $checkout.fields.graphic_url==''}{$checkout.fields.name}{else}<img src="{$checkout.fields.graphic_url}" alt="{$checkout.fields.name}" border="0">{/if}</a></td>
<td width="80%">{$checkout.fields.description}</td>
</tr>
{/foreach}
{else}
<tr valign="top">
<td>{translate module=cart}no_checkout_options{/translate}</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</div>
<!-- SIGNLE CHECOUT OPTIONS -->
{if $VAR.option=='' && $checkout_c == 1}
<script language=javascript>changeCheckoutOption('{$last_checkout_id}');</script>
{elseif $VAR.option>0}
<script language=javascript>
{literal}
try { document.getElementById('checkout_options_show').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_options').style.display='none'; } catch(e) {}
{/literal}
</script>
{/if}
{/if}
<!-- CURRENCY OPTIONS & DISCOUNT CODE ENTRY -->
<div>
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td width="33%" align="left" valign="top">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate}
currency
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="78%">
{literal}
<script language="JavaScript"> function CurrencyChange(obj) { document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&cyid='+obj.value; } </script>
{/literal}
{$list->currency_list("cyid_arr")}
<select name="currency" onChange="CurrencyChange(this);">
{foreach key=key item=item from=$cyid_arr}
<option value="{$key}" {if $key == $smarty.const.SESS_CURRENCY}{assign var=currency_thumbnail value=$item.iso}selected{/if}>
{$item.iso}
</option>
{/foreach}
</select>
</td>
<td width="22%"> <img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" border="0">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="33%" valign="top" align="center">
{ if $smarty.const.SHOW_DISCOUNT_CODE == 1 }
<form name="form1" method="post" action="javascript:addDiscount()">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate module=checkout}
discounts
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="92%">
{literal}
<script language="JavaScript">
function addDiscount() {
var discount = document.getElementById("discount").value;
document.location='{/literal}{$SSL_URL}{literal}?_page=checkout:checkout&discount='+discount+'&do[]=checkout:adddiscount';
}
</script>
{/literal}
<input type="text" id="discount" name="discount" size="12" onBlur="addDiscount()">
</td>
<td width="8%"><a href="javascript:addDiscount();"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</td>
<td width="33%" valign="top" align="right">
{ if $list->is_installed('affiliate') == 1 && $smarty.const.SHOW_AFFILIATE_CODE == 1 }
<form name="aid" method="post" action="{$SSL_URL}">
<input type="hidden" name="_page" value="checkout:checkout">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate module=checkout}
affiliate
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="92%">
<input type="text" id="discount" name="aid" size="12" value="{$smarty.const.SESS_AFFILIATE}" onBlur="document.aid.submit()">
</td>
<td width="8%">
<a href="javascript:document.aid.submit();">
<img src="themes/{$THEME_NAME}/images/icons/exp_16.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</td>
</tr>
</table>
</div>
<!-- LOOP THROUGH EACH RECORD -->
<div id="cart_items" {style_hide}>
<p><a href="?_page=cart:cart">{translate module=cart}remove_items{/translate}</a></p>
<p><a href="javascript:void(0);" onclick="javascript:getElementById('cart_items').style.display='none'; getElementById('cart_items_show').style.display='block';">{translate module=cart}hide_items{/translate}</a></p>
{foreach from=$cart item=cart}
<DIV id="{$cart.id}">
{if $cart.cart_type == "2"}
<!-- Show domain -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.domain_name|upper}
.
{$cart.domain_tld|upper}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{if $cart.host_type == "register"}
{translate module=cart}
register
{/translate}
{elseif $cart.host_type == "transfer"}
{translate module=cart}
transfer
{/translate}
{elseif $cart.host_type == "park"}
{translate module=cart}
park
{/translate}
{/if}
</b></td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
<DIV id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="base_price_{$cart.id}"></DIV>
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart.host_type == 'register'}
<select id="quantity_{$cart.id}" disabled>
{foreach from=$cart.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
{elseif $cart.cart_type == "3"}
<!-- Show ad-hoc item -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart.ad_hoc_name}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{translate module=cart}
price_type_one
{/translate}
</td>
</tr>
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
{/if}
{if $cart.host_type == "ip"}
{/if}
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart.id}"></div>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
{$cart.quantity}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{else}
<!-- Show product -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b>
{if $list->translate("product_translate","name", "product_id", $cart.product_id, "translate_product")}
{/if}
<U>
{$translate_product.name}
</U> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b>
{translate module=cart}
price_type
{/translate}
: </b>
{if $cart.product.price_type == "0"}
{translate module=cart}
price_type_one
{/translate}
{/if}
{if $cart.product.price_type == "1"}
{translate module=cart}
price_type_recurr
{/translate}
{/if}
{if $cart.product.price_type == "2"}
{translate module=cart}
price_type_trial
{/translate}
{/if}
</td>
</tr>
<tr>
<td width="67%">
{if $cart.product.price_type == "1"}
&nbsp;&nbsp;
<select id="recurr_schedule_{$cart.id}" name="recurr_schedule_{$cart.id}" disabled>
{foreach from=$cart.price item=price_recurr key=key}
<option value="{$key}" {if $cart.recurr_schedule == $key} selected{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
&nbsp;
{if $key == "0" }
{translate module=cart}
recurr_week
{/translate}
{/if}
{if $key == "1" }
{translate module=cart}
recurr_month
{/translate}
{/if}
{if $key == "2" }
{translate module=cart}
recurr_quarter
{/translate}
{/if}
{if $key == "3" }
{translate module=cart}
recurr_semianual
{/translate}
{/if}
{if $key == "4" }
{translate module=cart}
recurr_anual
{/translate}
{/if}
{if $key == "5" }
{translate module=cart}
recurr_twoyear
{/translate}
{/if}
{if $key == "6" }
{translate module=cart}
recurr_threeyear
{/translate}
{/if}
{if $price_recurr.setup > 0 }
&nbsp;&nbsp; + &nbsp;
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
{translate module=cart}
setup
{/translate}
{/if}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{if $cart.service_id != "" && $cart.service_id > 0}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart service=$cart.service_id}
service_upgrade
{/translate}
</td>
</tr>
{/if}
{if $cart.cart_type == "1"}
{if $cart.host_type == "ns_transfer"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_domain
{/translate}
- <u>
{$cart.domain_name}.{$cart.domain_tld}
</u></td>
</tr>
{/if}
{if $cart.host_type == "ip"}
<tr>
<td width="67%">&nbsp;&nbsp;
{translate module=cart}
host_type_ip
{/translate}
</td>
</tr>
{/if}
{/if}
{if $cart.attr}
<tr>
<td width="67%"> {$cart.attr} </td>
</tr>
{/if}
</table>
</td>
<td width="30%" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<DIV id="def_base_price_{$cart.id}">
{$list->format_currency_num($cart.price_base, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="base_price_{$cart.id}"></DIV>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
setup_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<DIV id="def_setup_price_{$cart.id}">
{$list->format_currency_num($cart.price_setup, $smarty.const.SESS_CURRENCY)}
</DIV>
<DIV id="setup_price_{$cart.id}"></DIV>
</td>
</tr>
<tr>
<td width="70%">
{translate module=cart}
quantity
{/translate}
</td>
<td width="30%" valign="middle" align="right">
{$cart.quantity}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<br>
{foreach from=$cart.assoc item=cart_assoc}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="70%" class="row2" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
<tr>
<td width="67%" class="row2"><b> </b>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
<tr>
<td width="51%"><b> <u>
{$cart_assoc.domain_name|upper}
.
{$cart_assoc.domain_tld|upper}
</u> </b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%"> &nbsp;&nbsp;<b> </b>
{if $cart_assoc.host_type == "register"}
{translate module=cart} host_type_register {/translate}
{elseif $cart_assoc.host_type == "transfer"}
{translate module=cart} host_type_transfer {/translate}
{elseif $cart_assoc.host_type == "park"}
{translate module=cart} host_type_park {/translate}
<!-- CHECKOUT CONFIRM -->
<div id="checkout_confirm_div">
{if $VAR.option != ''}
{$method->exe('checkout','checkoutoption')}
{if $plugin_template != false}
{$block->display($plugin_template)}
{/if}
{$cart.product.sku}
</td>
</tr>
</table>
</td>
<td width="30%" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="70%">
{translate module=cart}
base_price
{/translate}
</td>
<td width="30%" valign="middle" align="right">
<div id="def_base_price_{$cart_assoc.id}">
{$list->format_currency_num($cart_assoc.price, $smarty.const.SESS_CURRENCY)}
</div>
<div id="base_price_{$cart_assoc.id}"></div>
</td>
</tr>
</table>
{if $cart_assoc.host_type == 'register'}
<select id="quantity_{$cart_assoc.id}" disabled>
{foreach from=$cart_assoc.tld_arr item=tld_price key=tld_term}
<option value="{$tld_term}" {if $tld_term == $cart_assoc.domain_term}selected{/if}>
{$tld_term}
Year
{$list->format_currency($tld_price, $smarty.const.SESS_CURRENCY)}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
{/foreach}
</DIV>
{/foreach}
</div>
<!-- END OF RESULT LOOP -->
{/if}
</div>
<p id="checkout_options_show" {osb f=style_hide}>
<a href="#" onclick="document.getElementById('checkout_confirm_div').style.display='none';document.getElementById('checkout_options_show').style.display='none';document.getElementById('checkout_options').style.display='block';">View More Payment Options</a>
</p>
<!-- TOTALS -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="top" width="67%">
<p id="cart_items_show"><a href="javascript:void(0);" onclick="javascript:getElementById('cart_items').style.display='block'; getElementById('cart_items_show').style.display='none';">{translate module=cart}view_items{/translate}</a></p>
</td>
<td width="33%">
<table width="225" border="0" cellspacing="3" cellpadding="1" class="row1" align="right">
<tr valign="top" class="row2">
<td width="50%"><b>
{translate module=checkout}
totals
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="50%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td width="63%">
{translate module=cart}
subtotal
{/translate}
</td>
<td width="37%" align="right">
{$list->format_currency_num($sub_total, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{foreach from=$discount item=discount}
{if $discount.total > 0}
<tr>
<td width="63%">
{translate module=cart}
discount
{/translate}
(
{$discount.name}
) </td>
<td width="37%" align="right"> -
{$list->format_currency_num($discount.total, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{/if}
{/foreach}
{if $tax != false}
{foreach from=$tax item=tax }
<tr>
<td width="63%">
{$tax.name}
</td>
<td width="37%" align="right">
{$list->format_currency_num($tax.rate, $smarty.const.SESS_CURRENCY)}
</td>
</tr>
{/foreach}
{/if}
<tr>
<td width="63%"> <b>
{translate module=cart}
total
{/translate}
</b> </td>
<td width="37%" align="right"><b>
{$list->format_currency_num($total, $smarty.const.SESS_CURRENCY)}
</b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- CHECKOUT OPTIONS -->
<div id="checkout_options">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Please Select Your Preferred Payment Option{/t} </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="4" cellpadding="3">
{if $checkout}
{foreach from=$checkout item=checkout key=key}
<tr valign="top">
<td style="width: 20%;"><a href="javascript:void(0);" onclick="changeCheckoutOption({$checkout.fields.id},'checkout',false,0)">{if $checkout.fields.graphic_url==''}{$checkout.fields.name}{else}<img src="{$checkout.fields.graphic_url}" alt="{$checkout.fields.name}" style="border: 0px;"/>{/if}</a></td>
<td style="width: 80%;">{$checkout.fields.description}</td>
</tr>
{/foreach}
{else}
<tr valign="top">
<td>{t}Sorry, no online payment option has been defined for this order type. Please contact customer service for ordering details.{/t}</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
</div>
<!-- SINGLE CHECOUT OPTIONS -->
{if $VAR.option=='' && $checkout_c == 1}
<script type="text/javascript">changeCheckoutOption('{$last_checkout_id}');</script>
{elseif $VAR.option>0}
<script type="text/javascript">
<!--
{literal}
try { document.getElementById('checkout_options_show').style.display='block'; } catch(e) {}
try { document.getElementById('checkout_options').style.display='none'; } catch(e) {}
{/literal}
//-->
</script>
{/if}
{/if}
<!-- CURRENCY OPTIONS & DISCOUNT CODE ENTRY -->
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
<tr>
<td style="width: 33%; text-align: left;" valign="top">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td><b>{t}Currency{/t}</b></td>
</tr>
<tr valign="top" class="row1">
<td valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 75%;">
{$list->currency_list("cyid_arr")}
<select name="currency" onchange="CurrencyChange(this);">
{foreach key=key item=item from=$cyid_arr}
<option value="{$key}" {if $key == $smarty.const.SESS_CURRENCY}{assign var=currency_thumbnail value=$item.iso}selected="selected"{/if}>{$item.iso}</option>
{/foreach}
</select>
</td>
<td style="width: 25%;"><img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" alt="" style="border: 0px"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td style="width: 33%; text-align: center;" valign="top">
{if $smarty.const.SHOW_DISCOUNT_CODE == 1}
<form name="form1" method="post" action="javascript:addDiscount()">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td><b>{t}Discounts{/t}</b></td>
</tr>
<tr valign="top" class="row1">
<td valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="92%"><input type="text" id="discount" name="discount" size="12" onblur="addDiscount()"></td>
<td width="8%"><a href="javascript:addDiscount();"><img src="themes/{$THEME_NAME}/images/icons/calc_16.gif" alt="" style="border; 0px"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</td>
<td style="width: 33%; text-align: right;" valign="top">
{if $list->is_installed('affiliate') == 1 && $smarty.const.SHOW_AFFILIATE_CODE == 1}
<form name="aid" method="post" action="{$SSL_URL}">
<input type="hidden" name="_page" value="checkout:checkout">
<table width="150" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td><b>{t}Affiliate{/t}</b></td>
</tr>
<tr valign="top" class="row1">
<td valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="92%"><input type="text" id="discount" name="aid" size="12" value="{$smarty.const.SESS_AFFILIATE}" onBlur="document.aid.submit()"></td>
<td width="8%"><a href="javascript:document.aid.submit();"><img src="themes/{$THEME_NAME}/images/icons/exp_16.gif" alt="" style="border: 0px"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/if}
</td>
</tr>
</table>
<!-- LOOP THROUGH EACH RECORD -->
<div id="cart_items" {osb f=style_hide}>
<p><a href="?_page=cart:cart">{t}To edit or remove items, click here.{/t}</a></p>
<p><a href="javascript:void(0);" onclick="javascript:getElementById('cart_items').style.display='none'; getElementById('cart_items_show').style.display='block';">{t}Click here to hide itemised list.{/t}</a></p>
{foreach from=$cart item=cart}
<div id="c{$cart.id}">
{if $cart.cart_type == '2'}
{include file='file:../cart/cart_table_type_2.tpl' disable=true}
{elseif $cart.cart_type == "3"}
{include file='file:../cart/cart_table_type_3.tpl'}
{else}
{include file='file:../cart/cart_table_type_x.tpl' disable=true}
{/if}
<br/>
{include file='file:../cart/cart_table_assoc.tpl'}
</div>
{/foreach}
</div>
<!-- END OF RESULT LOOP -->
<!-- TOTALS -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
<tr>
<td valign="top" style="width: 65%;">
<p id="cart_items_show"><a href="javascript:void(0);" onclick="javascript:getElementById('cart_items').style.display='block'; getElementById('cart_items_show').style.display='none';">{t}Click here for an itemised list of items in this purchase.{/t}</a></p>
</td>
<td style="width: 35%;">
<table width="225" border="0" cellspacing="3" cellpadding="1" class="row1" style="margin-left: auto;">
<tr valign="top" class="row2">
<td><b>{t}Totals{/t}</b></td>
</tr>
<tr valign="top" class="row1">
<td valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td style="width: 65%;">{t}Sub-Total{/t}</td>
<td style="width: 35%; text-align: right;">{$list->format_currency_num($sub_total, $smarty.const.SESS_CURRENCY)}</td>
</tr>
{foreach from=$discount item=discount}
{if $discount.total > 0}
<tr>
<td style="width: 65%;">{t}Discount{/t} ({$discount.name})</td>
<td style="width: 35%; text-align: right;"> - {$list->format_currency_num($discount.total, $smarty.const.SESS_CURRENCY)}</td>
</tr>
{/if}
{/foreach}
{if $tax != false}
{foreach from=$tax item=tax }
<tr>
<td style="width: 65%;">{$tax.name}</td>
<td style="width: 35%; text-align: right;">{$list->format_currency_num($tax.rate, $smarty.const.SESS_CURRENCY)}</td>
</tr>
{/foreach}
{/if}
<tr>
<td style="width: 65%;"><b>{t}Total{/t}</b></td>
<td style="width: 35%; text-align: right;"><b>{$list->format_currency_num($total, $smarty.const.SESS_CURRENCY)}</b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{/if}
{/if}

View File

@@ -1,111 +1,12 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("checkout","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{if $results == 1}
{translate results=$results}search_result_count{/translate}
{else}
{translate results=$results}search_results_count{/translate}
{/if}
<BR>
{literal}
<script language="JavaScript">
<!-- START
var module = 'checkout';
{/literal}
{if $VAR._print == TRUE}
var p = '&_escape=y&_print=y';
{else}
var p = '';
{/if}{literal}
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
var order = '{/literal}{$order}{literal}';
var sort1 = '{/literal}{$sort}{literal}';
var search_id = '{/literal}{$search_id}{literal}';
var page = {/literal}{$page}{literal};
var pages = '{/literal}{$pages}{literal}';
var results = '{/literal}{$results}{literal}';
var limit = '{/literal}{$limit}{literal}';
record_arr = new Array ({/literal}{$limit}{literal});
var i = 0;
// END -->
</script>
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
{/literal}
<!-- SHOW THE SEARCH NAVIGATION MENU -->
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
<!-- BEGIN THE RESULTS CONTENT AREA -->
<div id="search_results" onKeyPress="key_handler(event);">
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form id="form1" name="form1" method="post" action="">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="5%" class="table_heading">&nbsp;</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=checkout}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=checkout}field_active{/translate}{literal}','active'));
</script>
{/literal}
</td>
<td width="31.6666666667%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=checkout}field_checkout_plugin{/translate}{literal}','checkout_plugin'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$checkout item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=checkout:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
<td align="center" width="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;{$record.name}</td>
<td>&nbsp;{if $record.active == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
<td>&nbsp;{$record.checkout_plugin}</td>
</tr>
{literal}
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
{/literal}
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</form>
</table>
{if $VAR._print != TRUE}<br>
<center>
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
<br>
</center>
{include file='file:../core/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}
{/if}
</div>

View File

@@ -1,398 +1,217 @@
{ $method->exe("checkout","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{literal}
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
<script language="JavaScript">
var module = 'checkout';
var locations = '{/literal}{$VAR.module_id}{literal}';
var id = '{/literal}{$VAR.id}{literal}';
var ids = '{/literal}{$VAR.ids}{literal}';
var array_id = id.split(",");
var array_ids = ids.split(",");
var num=0;
if(array_id.length > 2) {
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
}else if (array_ids.length > 2) {
document.write(view_nav_top(array_ids,id,ids));
}
function delete_record(id,ids)
{
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
if(temp == false) return;
var replace_id = id + ",";
ids = ids.replace(replace_id, '');
if(ids == '') {
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
window.location = url;
return;
} else {
var page = 'view&id=' +ids;
}
var doit = 'delete';
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
window.location = url;
}
// END -->
</script>
{/literal}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
<!-- Loop through each record -->
{foreach from=$checkout item=checkout} <a name="{$checkout.id}"></a>
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form id="checkoutedit" name="checkout_view" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td width="65%" class="table_heading">
<center>
{translate module=checkout}
title_add
{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_name
{/translate}
</td>
<td width="50%">
<input type="text" name="checkout_name" value="{$checkout.name}" {if $checkout_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_description
{/translate}
</td>
<td width="50%">
<textarea name="checkout_description" cols="40" rows="2">{$checkout.description}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_active
{/translate}
</td>
<td width="50%">
{ $list->bool("checkout_active", $checkout.active, " onchange=\"submit()\"") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_graphic_url
{/translate}
</td>
<td width="50%">
<input type="text" name="checkout_graphic_url" value="{$checkout.graphic_url}" {if $checkout_grapic_url == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_checkout_plugin
{/translate}
</td>
<td width="50%">
{ $checkout.checkout_plugin }
<input type="hidden" name="checkout_checkout_plugin" value="{ $checkout.checkout_plugin }">
</td>
</tr>
</table>
{assign var="ablock" value="checkout_plugin:plugin_cfg_"}
{assign var="afile" value=$checkout.checkout_plugin}
{assign var="blockfile" value="$ablock$afile"}
{ $block->display($blockfile) }
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_allow_new
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_allow_recurring
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_allow_trial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
{ $list->bool("checkout_allow_new", $checkout.allow_new, "form_menu") }
</td>
<td width="33%">
{ $list->bool("checkout_allow_recurring", $checkout.allow_recurring, "form_menu") }
</td>
<td width="33%">
{ $list->bool("checkout_allow_trial", $checkout.allow_trial, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_total_minimum
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_total_maximum
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_max_decline_attempts
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
<input type="text" name="checkout_total_minimum" value="{$checkout.total_minimum}" {if $checkout_total_minimum == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="33%">
<input type="text" name="checkout_total_maximum" value="{$checkout.total_maximum}" {if $checkout_total_maximum == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="33%">
<input type="text" name="checkout_max_decline_attempts" value="{$checkout.max_decline_attempts}" {if $checkout_max_decline_attempts == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">
{translate module=checkout}
field_required_groups
{/translate}
</td>
<td width="33%">
{translate module=checkout}
field_excluded_products
{/translate}
</td>
</tr>
<tr valign="top">
<td width="33%">
{ $list->menu_multi($checkout.required_groups, "checkout_required_groups", "group", "name", "5", "5", "form_menu") }
</td>
<td width="33%">
{ $list->menu_multi($checkout.excluded_products, "checkout_excluded_products", "product", "sku", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_manual_approval_all
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_recur
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->bool("checkout_manual_approval_all", $checkout.manual_approval_all, "form_menu") }
</td>
<td width="50%">
{ $list->bool("checkout_manual_approval_recur", $checkout.manual_approval_recur, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_manual_approval_amount
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_currency
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_manual_approval_amount" value="{$checkout.manual_approval_amount}" {if $checkout_manual_approval_amount == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="50%">
{ $list->menu_multi($checkout.manual_approval_currency, "checkout_manual_approval_currency", "currency", "three_digit", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_manual_approval_country
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_manual_approval_group
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($checkout.manual_approval_country, "checkout_manual_approval_country", "country", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
{ $list->menu_multi($checkout.manual_approval_group, "checkout_manual_approval_group", "group", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_default_when_amount
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_default_when_currency
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_default_when_amount" value="{$checkout.default_when_amount}" {if $checkout_default_when_amount == true}class="form_field_error"{/if} size="5">
{ $list->currency_iso("") }
</td>
<td width="50%">
{ $list->menu_multi($checkout.default_when_currency, "checkout_default_when_currency", "currency", "three_digit", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">
{translate module=checkout}
field_default_when_country
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_default_when_group
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($checkout.default_when_country, "checkout_default_when_country", "country", "name", "5", "5", "form_menu") }
</td>
<td width="50%">
{ $list->menu_multi($checkout.default_when_group, "checkout_default_when_group", "group", "name", "5", "5", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">
{translate module=checkout}
field_allowed_currencies
{/translate}
</td>
<td width="50%">
{translate module=checkout}
field_email_template
{/translate}
</td>
</tr>
<tr valign="top">
<td width="50%">
{ $list->menu_multi($checkout.allowed_currencies, "checkout_allowed_currencies", "currency", "three_digit", "5", "5", "form_menu") }
</td>
<td width="50%">
<textarea name="checkout_email_template" cols="40" rows="4">{$checkout.email_template}</textarea>
</td>
</tr>
<tr valign="top">
<td width="50%"></td>
<td width="50%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="checkout:view">
<input type="hidden" name="checkout_id" value="{$checkout.id}">
<input type="hidden" name="do[]" value="checkout:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/foreach}
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">{osb f=tf field=name}</td>
<td width="50%"><input type="text" name="checkout_name" value="{$record.name}" {if $record == true}class="form_field_error"{/if}></td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=description}</td>
<td width="50%"><textarea name="checkout_description" cols="40" rows="2">{$record.description}</textarea></td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=active}</td>
<td width="50%">{$list->bool('checkout_active',$record.active,'" onchange="submit()')}</td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=graphic_url}</td>
<td width="50%"><input type="text" name="checkout_graphic_url" value="{$record.graphic_url}" {if $checkout_grapic_url == true}class="form_field_error"{/if}></td>
</tr>
<tr valign="top">
<td width="50%">{osb f=tf field=checkout_plugin}</td>
<td width="50%">{$record.checkout_plugin}<input type="hidden" name="checkout_checkout_plugin" value="{ $record.checkout_plugin }"/></td>
</tr>
</table>
{assign var='ablock' value='checkout_plugin:plugin_cfg_'}
{assign var='afile' value=$record.checkout_plugin}
{assign var='blockfile' value="$ablock$afile"}
{$block->display($blockfile)}
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">{osb f=tf field=allow_new}</td>
<td width="33%">{osb f=tf field=allow_recurring}</td>
<td width="33%">{osb f=tf field=allow_trial}</td>
</tr>
<tr valign="top">
<td width="33%">{$list->bool('checkout_allow_new',$record.allow_new)}</td>
<td width="33%">{$list->bool('checkout_allow_recurring',$record.allow_recurring)}</td>
<td width="33%">{$list->bool('checkout_allow_trial',$record.allow_trial)}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">{osb f=tf field=total_minimum}</td>
<td width="33%">{osb f=tf field=total_maximum}</td>
<td width="33%">{osb f=tf field=max_decline_attempts}</td>
</tr>
<tr valign="top">
<td width="33%">
<input type="text" name="checkout_total_minimum" value="{$record.total_minimum}" {if $checkout_total_minimum == true}class="form_field_error"{/if} size="5"/>
{$list->currency_iso('')}
</td>
<td width="33%">
<input type="text" name="checkout_total_maximum" value="{$record.total_maximum}" {if $checkout_total_maximum == true}class="form_field_error"{/if} size="5"/>
{$list->currency_iso('')}
</td>
<td width="33%">
<input type="text" name="checkout_max_decline_attempts" value="{$record.max_decline_attempts}" {if $checkout_max_decline_attempts == true}class="form_field_error"{/if} size="5"/>
{$list->currency_iso('')}
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="row1">
<tr valign="top" class="row2">
<td width="33%">{osb f=tf field=required_groups}</td>
<td width="33%">{osb f=tf field=excluded_products}</td>
</tr>
<tr valign="top">
<td width="33%">{$list->menu_multi($record.required_groups,'checkout_required_groups','group','name','5','5','form_menu')}</td>
<td width="33%">{$list->menu_multi($record.excluded_products,'checkout_excluded_products','product','sku','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">{osb f=tf field=manual_approval_all}</td>
<td width="50%">{osb f=tf field=manual_approval_recur}</td>
</tr>
<tr valign="top">
<td width="50%">{$list->bool('checkout_manual_approval_all',$record.manual_approval_all)}</td>
<td width="50%">{$list->bool('checkout_manual_approval_recur',$record.manual_approval_recur)}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">{osb f=tf field=manual_approval_amount}</td>
<td width="50%">{osb f=tf field=manual_approval_currency}</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_manual_approval_amount" value="{$record.manual_approval_amount}" {if $checkout_manual_approval_amount == true}class="form_field_error"{/if} size="5"/>
{$list->currency_iso('')}
</td>
<td width="50%">{$list->menu_multi($record.manual_approval_currency,'checkout_manual_approval_currency','currency','three_digit','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">{osb f=tf field=manual_approval_country}</td>
<td width="50%">{osb f=tf field=manual_approval_group}</td>
</tr>
<tr valign="top">
<td width="50%">{$list->menu_multi($record.manual_approval_country,'checkout_manual_approval_country','country','name','5','5','form_menu')}</td>
<td width="50%">{$list->menu_multi($record.manual_approval_group,'checkout_manual_approval_group','group','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">{osb f=tf field=default_when_amount}</td>
<td width="50%">{osb f=tf field=default_when_currency}</td>
</tr>
<tr valign="top">
<td width="50%">
<input type="text" name="checkout_default_when_amount" value="{$record.default_when_amount}" {if $checkout_default_when_amount == true}class="form_field_error"{/if} size="5"/>
{$list->currency_iso('')}
</td>
<td width="50%">{$list->menu_multi($record.default_when_currency,'checkout_default_when_currency','currency','three_digit','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row2">
<td width="50%">{osb f=tf field=default_when_country}</td>
<td width="50%">{osb f=tf field=default_when_group}</td>
</tr>
<tr valign="top">
<td width="50%">{$list->menu_multi($record.default_when_country,'checkout_default_when_country','country','name','5','5','form_menu')}</td>
<td width="50%">{$list->menu_multi($record.default_when_group,'checkout_default_when_group','group','name','5','5','form_menu')}</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">{osb f=tf field=allowed_currencies}</td>
<td width="50%">{osb f=tf field=email_template}</td>
</tr>
<tr valign="top">
<td width="50%">{$list->menu_multi($record.allowed_currencies,'checkout_allowed_currencies','currency','three_digit','5','5','form_menu')}</td>
<td width="50%"><textarea name="checkout_email_template" cols="40" rows="4">{$record.email_template}</textarea></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
<tr class="row1">
{include file='file:../core/view_td_submit.tpl'}
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}