Turinio valdymo sistema

Prisijungimas partneriams
Jūsų slaptažodis

Dirbame su:










authorized_cart

{_shop->getStoredCart assign="cart"}
{if !$cart}
Prekės neužsakytos

{else}

<h3>Jūsų krepšelis</h3>
<table>
<form action="{$_http_path}/index.php?cid={$_item_id}" method="POST">
<input type="hidden" name="action" value="shop.recalc">
{foreach from=$cart item="el" name="count"}
{_shop->getProductPrice product_id=$el.product_id assign="price_data"}
{if $price_data.price == ""}
{assign var="main_price01" value=0}
{else}
{assign var='main_price01' value=$price_data.price}
{/if}
{if $el.quantity}
{math equation="y*qty" y=$main_price01 qty=$el.quantity assign="endprice" format="%.2f"}
{else}
{assign var="endprice" value=$main_price01}
{/if}
{math equation="$sum+y" y=$endprice assign="sum" format="%.2f"}
<tr>
<td><a href="/shop?product_id={$el.product_id}&amp;scheme_id={$el.scheme_id}&amp;category_id={$el.category_id}">{$el.name_lt}</a></td>
 <td><input class="input" type="Text" name="prod[{$el.product_id}]" value="{$el.quantity}"></td>
 <td>{$endprice}</td>
 <td><a class="news" href="/?cid={$_item_id}&amp;action=shop.removeProduct&amp;product_id={$el.id}">Ištrinti</a></td>
</tr>
{/foreach}
<tr>
 <td><input class="formButton" type="Submit" value="Perskaičiuoti rezultatus"></td>
 <td>Viso:</td>
 <td>{$sum}</td>
 <td></td>
</tr>
</form>
</table>
{/if}