[{if $basket->getGiftcertSum()}]
    [{foreach from=$basket->getGiftCertList() item=oGiftcert key=key name=Giftcert}]
        [{if $oGiftcert->ysgiftcert__ysgiftcertnr->value}]
            <tr valign="top" bgcolor="#ebebeb">
            <td align="right" colspan="[{$iFooterColspan}]" class="odd text-right">[{oxmultilang ident="YS_GIFTCERT_CERT_USED_EMAIL"}] ([{oxmultilang ident="NUMBER"}] [{$oGiftcert->ysgiftcert__ysgiftcertnr->value}])</td>
            <td align="right" class="odd text-right">
                [{assign var="theprice" value=$basket->getGiftCertRealDiscount($oGiftcert->ysgiftcert__ysgiftcertnr->value)}]
                <strong>-[{oxprice price=$theprice currency=$currency}]</strong>
            </td>
            </tr>
        [{/if}]
    [{/foreach}]
[{/if}]

[{assign var="theprice" value=$basket->getGiftCertUsedPoolAmount()}]
[{if $theprice->getPrice() > 0}]
    <tr valign="top" bgcolor="#ebebeb">
        <td align="right" colspan="[{$iFooterColspan}]" class="odd text-right">[{oxmultilang ident="YS_GIFTCERT_MONEYPOOL_USED_EMAIL"}]</td>
        <td align="right" class="odd text-right">
            <strong>-[{oxprice price=$theprice currency=$currency}]</strong>
        </td>
    </tr>
[{/if}]
