{* Шаблон корзины покупателя *} {if $this_is_a_popup_cart_window}
{/if} {include file="header.tpl.html" header=$smarty.const.CART_TITLE} {if $cart_content}

{if $make_more_exact_cart_content}
{$smarty.const.STRING_MAKE_MORE_EXACT_CART_CONTENT}
{/if} {if $cart_amount<$smarty.const.CONF_MINIMAL_ORDER_AMOUNT}
{$smarty.const.CART_TOO_SMALL_ORDER_AMOUNT} {$cart_min}
{/if} {counter name=product_count start=1 skip=1 print=false}
{$smarty.const.TABLE_PRODUCT_NAME} {if $smarty.const.CONF_DISPLAY_PRCODE eq 1} | {$smarty.const.STRING_PRODUCT_CODE} {/if} | {$smarty.const.TABLE_PRODUCT_QUANTITY} | {$smarty.const.TABLE_PRODUCT_COST}, {$currency_name} |
{section loop=$cart_content name=i} {counter name=product_count print=false}
{if $this_is_a_popup_cart_window} {$cart_content[i].name} {else} {$cart_content[i].name} {/if} {if $smarty.const.CONF_DISPLAY_PRCODE eq 1} | {$cart_content[i].product_code} {/if} | {if $session_items} {else} {/if} {if $cart_content[i].min_order_amount}
{$smarty.const.STRING_MIN_ORDER_AMOUNT} {$cart_content[i].min_order_amount} {$smarty.const.STRING_ITEM}
{/if} | {$cart_content[i].cost} {if $session_items} | X {else} | X {/if}
{/section} {if $discount_prompt != 0} {counter name=product_count print=false} {if $discount_prompt == 1 && $discount_percent != 0}
{$smarty.const.ADMIN_DISCOUNT} {$discount_percent} | {$discount_value} |
{/if} {if $discount_prompt == 2} {counter name=product_count print=false}
{$smarty.const.STRING_UNREGISTERED_CUSTOMER_DISCOUNT_PROMPT}
{/if} {if $discount_prompt == 3 && $discount_percent != 0} {counter name=product_count print=false}
{$smarty.const.ADMIN_DISCOUNT} {$discount_percent} {$smarty.const.STRING_UNREGISTERED_CUSTOMER_COMBINED_DISCOUNT_PROMPT} | {$discount_value} |
{/if} {/if}
{$smarty.const.TABLE_TOTAL}: | {$cart_total} |

{$smarty.const.CART_PROCEED_TO_CHECKOUT} | {$smarty.const.UPDATE_BUTTON}{if $this_is_a_popup_cart_window} | {$smarty.const.CLOSE_BUTTON}{/if} | {$smarty.const.CART_CLEAR}

{else}

{$smarty.const.CART_EMPTY}

{/if} {if $this_is_a_popup_cart_window} {* корректировка высоты окна корзины *}
{/if}