70 lines
2.6 KiB
Smarty
70 lines
2.6 KiB
Smarty
<script type="text/javascript">
|
|
<!--
|
|
var confirmCheckoutMsg='{t}Thank you! We will now finalize your purchase and forward you to the secure payment area.{/t}';
|
|
//-->
|
|
</script>
|
|
<script type="text/javascript" src="themes/default/blocks/checkout/ajax.js"></script>
|
|
|
|
<!-- 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>
|
|
|
|
<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';">{t}View More Payment Options{/t}</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 class="table_heading">{t}Select Your Preferred Payment Option{/t}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td class="row1">
|
|
<table width="100%" border="0" cellspacing="4" cellpadding="3">
|
|
{if $checkoutoptions}
|
|
{foreach from=$checkoutoptions item=checkout key=key}
|
|
<tr valign="top">
|
|
<td style="width: 20%;"><a href="javascript:void(0);" onclick="changeCheckoutOption({$checkout.fields.id},'{if $VAR._page=='invoice:checkout_multiple'}multi{else}invoice{/if}','{$record.id}',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 style="width: 80%;">{$checkout.fields.description} </td>
|
|
</tr>
|
|
{/foreach}
|
|
{else}
|
|
<tr valign="top">
|
|
<td>{t}Sorry, no online payment option is available for this order. Please contact us for order information and payment options.{/t}</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
</div>
|
|
|
|
<!-- SINGLE CHECKOUT OPTIONS -->
|
|
{if $VAR.option== '' && $checkout_c == 1}
|
|
<script type="text/javascript">changeCheckoutOption(last_checkout_id,{$invoice.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}
|