[{if $oxcmp_basket->getGiftcertSum()}]

    [{* First of all show all Giftcerts *}]
    [{foreach from=$oxcmp_basket->getGiftCertList() item=oGiftcert key=key name=Giftcert}]
        [{if $oGiftcert->ysgiftcert__ysgiftcertnr->value}]
            <tr class="giftcertData">
                <th class="text-right">
                    <span><strong>[{oxmultilang ident="YS_GIFTCERT_BASKETSUMMARY_CERT"}]</strong>&nbsp;([{oxmultilang ident="NUMBER"}] [{$oGiftcert->ysgiftcert__ysgiftcertnr->value}])</span>
                    [{if $editable}]
                        <a href="[{$oViewConf->getSelfLink()}]&amp;cl=basket&amp;fnc=removeGiftcert&amp;voucherId=[{$oGiftcert->ysgiftcert__ysgiftcertnr->value}]&amp;CustomError=basket"
                           class="removeFn">[{oxmultilang ident="REMOVE"}]</a>
                    [{/if}]
                </th>
                [{assign var="theprice" value=$oxcmp_basket->getGiftCertRealDiscount($oGiftcert->ysgiftcert__ysgiftcertnr->value)}]
                <td class="text-right">-<strong>[{oxprice price=$theprice currency=$currency}]</strong></td>
            </tr>
        [{/if}]
    [{/foreach}]
[{/if}]

[{* If we are in "pool" Mode we show how much from the pool is used *}]
[{assign var="usedPoolAmount" value=$oxcmp_basket->getGiftCertUsedPoolAmount()}]
[{if $usedPoolAmount->getPrice() > 0}]
    <tr class="giftcertData PoolAmount">
        <th class="text-right">
            <span><strong>[{oxmultilang ident="YS_GIFTCERT_BASKETSUMMARY_POOL"}]</strong></span>

        </th>
        <td class="text-right">-<strong>[{oxprice price=$usedPoolAmount currency=$currency}]</strong></td>
    </tr>
[{/if}]
