2009-08-03 04:10:16 +00:00
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
|
|
|
|
{$method->exe_noauth($meth.0,'user_view')}
|
|
|
|
{if ($method->result == false)}
|
|
|
|
{$block->display('core:method_error')}
|
2008-11-26 22:50:40 +00:00
|
|
|
{else}
|
2009-08-03 04:10:16 +00:00
|
|
|
|
2008-11-26 22:50:40 +00:00
|
|
|
{if $results <= 0}
|
2009-08-03 04:10:16 +00:00
|
|
|
{t}Your cart is empty, please select one or more products to continue{/t}
|
|
|
|
{$block->display('product_cat:user_menu')}
|
|
|
|
{else}
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
{literal}
|
|
|
|
function changeDomainTerm(id,term) {
|
|
|
|
showIFrame('iframe',0,0,'?_page=cart:changeqty&type=3&_escape=1&id='+id+'&term='+term);
|
|
|
|
}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
function changeRecurring(id,schedule) {
|
|
|
|
showIFrame('iframe',0,0,'?_page=cart:changeqty&type=2&_escape=1&id='+id+'&schedule='+schedule);
|
|
|
|
}
|
|
|
|
|
|
|
|
function changeQuantity(id,qty) {
|
|
|
|
if(qty == "0") qty = 1;
|
|
|
|
showIFrame('iframe',0,0,'?_page=cart:changeqty&type=1&_escape=1&id='+id+'&qty='+qty);
|
|
|
|
}
|
|
|
|
|
|
|
|
function deleteCart(id) {
|
|
|
|
document.getElementById('c'+id).style.display = 'none';
|
|
|
|
showIFrame('iframe',0,0,'?_page=cart:changeqty&_escape=1&id='+id+'&qty=0');
|
|
|
|
}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
function updatePrice(id,base,setup,qty) {
|
|
|
|
document.getElementById("quantity_"+id).value = qty;
|
|
|
|
document.getElementById("def_base_price_"+id).style.display='none';
|
|
|
|
document.getElementById("base_price_"+id).innerHTML = base;
|
|
|
|
|
|
|
|
if(document.getElementById("def_setup_price_"+id))
|
|
|
|
document.getElementById("def_setup_price_"+id).style.display='none';
|
|
|
|
|
|
|
|
if(document.getElementById("setup_price_"+id))
|
|
|
|
document.getElementById("setup_price_"+id).innerHTML = setup;
|
|
|
|
}
|
|
|
|
|
|
|
|
function CurrencyChange(obj) {
|
|
|
|
document.location='?_page=cart:cart&cyid='+obj.value;
|
|
|
|
}
|
|
|
|
{/literal}
|
|
|
|
//-->
|
2008-11-26 22:50:40 +00:00
|
|
|
</script>
|
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- LOOP THROUGH EACH RECORD -->
|
|
|
|
{foreach from=$cart item=cart}
|
|
|
|
<div id="c{$cart.id}">
|
|
|
|
{if $cart.cart_type == '2'}
|
|
|
|
{include file='file:cart_table_type_2.tpl'}
|
|
|
|
{elseif $cart.cart_type == '3'}
|
|
|
|
{include file='file:cart_table_type_3.tpl'}
|
|
|
|
{else}
|
|
|
|
{include file='file:cart_table_type_x.tpl'}
|
|
|
|
{/if}
|
|
|
|
<br/>
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
{include file='file:cart_table_assoc.tpl'}
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
<!-- END OF RESULT LOOP -->
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="no" ALLOWTRANSPARENCY="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="3" class="body">
|
|
|
|
<tr>
|
|
|
|
<td style="width: 75%;">
|
|
|
|
<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>
|
|
|
|
{$list->currency_list('cyid_arr')}
|
|
|
|
<select name="select2" 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: 20px;"><img src="themes/{$THEME_NAME}/images/currency/{$currency_thumbnail}.gif" alt="Currency" style="border: 0px;"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td style="width: 25%;" valign="bottom" align="right">
|
|
|
|
<form id="cart" method="post" action="" enctype="multipart/form-data">
|
|
|
|
<div>
|
|
|
|
<input type="hidden" name="s" value="{$SESS}"/>
|
|
|
|
<input type="hidden" name="_page" value="checkout:checkout"/>
|
|
|
|
<input type="submit" name="Submit" value="{t}Checkout{/t}" class="form_button"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{/if}
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|