{capture name=path}{l s='My account' mod='loyalty'}{$navigationPipe}{l s='My loyalty points' mod='loyalty'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"}

{l s='My loyalty points' mod='loyalty'}

{if $displayorders}
{if $displayorders && count($displayorders)} {foreach from=$displayorders item='order' name=orders} {if $order.id_loyalty_state == 3} {continue} {/if} {/foreach}
{l s='Order' mod='loyalty'} {l s='Date' mod='loyalty'} {l s='Total' mod='loyalty'} {l s='Discount' mod='loyalty'} {l s='Points Status' mod='loyalty'}
  {l s='Total discount available:' mod='loyalty'} {Tools::displayPrice($voucher)}  
{dateFormat date=$order.date full=1} {Tools::displayPrice($order.total_without_shipping)} {Tools::displayPrice($order.discount_value)} {$order.state|escape:'htmlall':'UTF-8'}
{else}

{l s='You have not placed any orders.'}

{/if}
{if $transformation_allowed}

{l s='Transform my discounts into a voucher of' mod='loyalty'} {convertPrice price=$voucher}.

{/if}

{l s='My vouchers from loyalty points' mod='loyalty'}

{if $nbDiscounts}
{foreach from=$discounts item=discount name=myLoop} {/foreach}
{l s='Created' mod='loyalty'} {l s='Value' mod='loyalty'} {l s='Code' mod='loyalty'} {l s='Valid from' mod='loyalty'} {l s='Valid until' mod='loyalty'} {l s='Status' mod='loyalty'} {l s='Details' mod='loyalty'}
{dateFormat date=$discount->date_add} {if $discount->id_discount_type == 1} {$discount->value}% {elseif $discount->id_discount_type == 2} {displayPrice price=$discount->value currency=$discount->id_currency} {else} {l s='Free shipping' mod='loyalty'} {/if} {$discount->name} {dateFormat date=$discount->date_from} {dateFormat date=$discount->date_to} {if $discount->quantity > 0}{l s='To use' mod='loyalty'}{else}{l s='Used' mod='loyalty'}{/if} {l s='more...' mod='loyalty'}
{if $minimalLoyalty > 0}

{l s='The minimum order amount in order to use these vouchers is:'} {convertPrice price=$minimalLoyalty}

{/if} {else}

{l s='No vouchers yet.' mod='loyalty'}

{/if} {else}

{l s='No reward discounts yet.' mod='loyalty'}

{/if}