<{assign var=totalitem value=0}> <{assign var=total_cart_number value="<{$user_id|cartcount:$language_id}>"}> <{assign var=total_cart_price value="<{cartTotalPrice user_id=$user_id language_id=$language_id}>"}> <{if $user_id|cartcount:$language_id > 0}>

<{cartList item=list language_id=$language_id limit=4 name=minicart_list}>
- <{$list.base_name|truncate:62:"...":true}> <{if $list.attributes}>
  <{foreach from=$list.attributes name=minicart item=p}> <{$p.base_name|upper}><{if !$smarty.foreach.minicart.last}>,<{/if}> <{/foreach}>
  <{/if}>
  X <{$list.qty}> = <{$lcoin}> <{$list.subtotal}><{$rcoin}>
<{assign var=totalitem value=$totalitem+1}> <{/cartList}> <{if $totalitem == 4}>
- <{$lang.see_all}><{$total_cart_number}> <{$lang.Items}> »
<{/if}>

<{getLastestPromotion cart_num=$total_cart_number language_id=$language_id name=lastest_promotion_num type=cart_num}> <{if $lastest_promotion_num}>
<{$lang.MORE}> <{$lastest_promotion_num.min_buynum-$total_cart_number}> <{$lang.Pcs}> <{$lang.ENJOY}> "<{$lastest_promotion_num.base_name}>"
<{/if}> <{getLastestPromotion cart_price=$total_cart_price|toolprice language_id=$language_id name=lastest_promotion_price type=cart_price}> <{if $lastest_promotion_price}>
<{$lang.MORE}> <{$lcoin}> <{$lastest_promotion_price.min_amount|price-$total_cart_price}> <{$lang.ENJOY}> "<{$lastest_promotion_price.base_name}>"
<{/if}>

<{$user_id|cartcount:$language_id}> <{$lang.items}>, <{$lang.Subtotal}>: <{$lcoin}> <{cartTotalPrice user_id=$user_id language_id=$language_id}> <{$rcoin}>

<{$lang.view_my_cart}>
<{else}>

<{$lang.notice1}>

<{$lang.notice2}>

<{/if}>