29 lines
995 B
Smarty
29 lines
995 B
Smarty
|
<tr valign="top">
|
||
|
<td style="width: 50%;">{translate module=checkout}Payment Fee Type{/translate}</td>
|
||
|
<td style="width: 50%;">
|
||
|
{$list->menu_staticlist('commissiontype','checkout_plugin_data_feetype','checkout_plugin_data[feetype]',$plugin_data.feetype,'form_menu" onchange="setFee(this.value)')}
|
||
|
<script type="text/javascript">
|
||
|
{literal}
|
||
|
function setFee(value) {
|
||
|
<!--
|
||
|
feefield = document.getElementById('checkout_plugin_data_fee');
|
||
|
if (value == 0) {
|
||
|
feefield.disabled = true;
|
||
|
|
||
|
if (feefield.value)
|
||
|
feefield.value = '';
|
||
|
|
||
|
} else {
|
||
|
feefield.disabled = false;
|
||
|
}
|
||
|
}
|
||
|
{/literal}
|
||
|
//-->
|
||
|
</script>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr valign="top">
|
||
|
<td style="width: 50%;">{translate module=checkout}Payment Fee{/translate}{$plugin_data.fee}</td>
|
||
|
<td style="width: 50%;"><input type="text" id="checkout_plugin_data_fee" name="checkout_plugin_data[fee]" value="{$plugin_data.fee}" class="form_menu" {if ! $plugin_data.feetype}disabled="disabled"{/if}/></td>
|
||
|
</tr>
|