{* * * GIFT CARD * * @category pricing_promotion * @author Timactive - Romain DE VERA * @copyright TIMACTIVE 2013 * @version 1.0.0 * ************************************* ** GIFT CARD * ** V 1.0.0 * ************************************* * + * + Languages: EN, FR * + PS version: 1.5 * *} {if (isset($giftcardsorder) && $giftcardsorder && ($giftcardsorder|@count) > 0)} {if $ps_version >= '1.6'}

{l s='Gift Card purchased' mod='giftcard'}

{else}
{l s='Gift Card purchased' mod='giftcard'} {/if} {foreach from=$giftcardsorder item=giftcardorder} {if !$currentState->logable && ($giftcardorder.status=='CREATED')} {if isset($giftcardorder.used_order) && $giftcardorder.used_order>0} {if $ps_version >= '1.6'}
    {l s='The gift card %1$s with code %2$s is used but the order is cancel' mod='giftcard' sprintf=[$giftcardorder.cart_rule_name,$giftcardorder.discountcode]}
{else}

{l s='The gift card %1$s with code %2$s is used but the order is cancel' mod='giftcard' sprintf=[$giftcardorder.cart_rule_name,$giftcardorder.discountcode]}

{/if} {else} {if $ps_version >= '1.6'}
    {l s='The gift card %1$s with code %2$s must be cancel because the order is cancel' mod='giftcard' sprintf=[$giftcardorder.cart_rule_name,$giftcardorder.discountcode]}
{else}

{l s='The gift card %1$s with code %2$s must be cancel because the order is cancel' mod='giftcard' sprintf=[$giftcardorder.cart_rule_name,$giftcardorder.discountcode]}

{/if} {/if} {/if} {/foreach}
{foreach from=$errors item=error} {if $ps_version >= '1.6'}
    {$error}
{else}

{$error}

{/if} {/foreach} {foreach from=$infos item=info} {if $ps_version >= '1.6'}
    {$info}
{else}

{$info}

{/if} {/foreach} {foreach from=$giftcardsorder item=giftcardorder} {/foreach}
{l s='Amount reduction' mod='giftcard'} {l s='Code' mod='giftcard'} {l s='Qty' mod='giftcard'} {l s='Active' mod='giftcard'} {l s='Status' mod='giftcard'}
{displayPrice price=$giftcardorder.price currency=$giftcardorder.id_currency} {$giftcardorder.discountcode|escape} {$giftcardorder.voucher_qty|intval} {if isset($giftcardorder.voucher_active)} {if $giftcardorder.voucher_active} {l s='enabled' mod='giftcard'} {else} {l s='disabled' mod='giftcard'} {/if} {else}? {/if} {if $giftcardorder.status eq 'CREATED'} {if isset($giftcardorder.used_order) && (int)$giftcardorder.used_order>0 } {l s='Used in order #%s' mod='giftcard' sprintf=$giftcardorder.used_order} {l s='view' mod='giftcard'} {else} {l s='Unused' mod='giftcard'} {/if} {else} {if $giftcardorder.status eq 'WAIT'} {l s='Waiting valid order' mod='giftcard'} {elseif $giftcardorder.status eq 'CANCEL'} {l s='Canceled' mod='giftcard'} {elseif $giftcardorder.status eq 'ERROR'} {l s='Error' mod='giftcard'} {/if} {/if} {if $giftcardorder.status eq 'CREATED'} {l s='View pdf' mod='giftcard'}  {if !($ps_version >= '1.6')}
{/if} {/if} {if isset($giftcardorder.used_order) && $giftcardorder.used_order>0} {l s='Card used no action available' mod='giftcard'} {else} {if $giftcardorder.status eq 'CREATED' || $giftcardorder.status eq 'WAIT'} {if $ps_version >= '1.6'}{/if} {l s='Cancel this gift card' mod='giftcard'} {elseif $giftcardorder.status eq 'CANCEL' && $giftcardorder.voucher_qty > 0} {if $ps_version >= '1.6'}{/if} {l s='Actived this gift card' mod='giftcard'} {/if} {/if}
{if $ps_version >= '1.6'}
{else} {/if} {/if} {if (isset($purchaseorders) && $purchaseorders && ($purchaseorders|@count) > 0)} {if $ps_version >= '1.6'}

{l s='Gift card used' mod='giftcard'}

{else}
{l s='Gift card used' mod='giftcard'} {/if} {foreach from=$purchaseorders item=purchaseorder} {if !$purchaseorder.status_logable} {if $ps_version >= '1.6'}
    {l s='The customer used card %1$s with code %2$s but the purchase order #%3$s is canceled' mod='giftcard' sprintf=[$purchaseorder.cart_rule_name,$purchaseorder.discountcode,$purchaseorder.id_order]}
{else}

{l s='The customer used card %1$s with code %2$s but the purchase order #%3$s is canceled' mod='giftcard' sprintf=[$purchaseorder.cart_rule_name,$purchaseorder.discountcode,$purchaseorder.id_order]}

{/if} {/if} {/foreach}

{l s='The customer used a gift card in this order, you can see from the list, the purchase order associated with this gift card' mod='giftcard'}

{foreach from=$purchaseorders item=purchaseorder} {/foreach}
{l s='Name' mod='giftcard'} {l s='Date order' mod='giftcard'} {l s='Id Order' mod='giftcard'} {l s='Order Status' mod='giftcard'}
{$purchaseorder.cart_rule_name|escape} {dateFormat date=$purchaseorder.date_add full=1} # {$purchaseorder.id_order|intval} {l s='view' mod='giftcard'} {$purchaseorder.status_name}
{if $ps_version >= '1.6'}
{else} {/if} {/if}