[{if !$oDetailsProduct->isGiftCertArticle()}]
    [{$smarty.block.parent}]
[{else}]
    [{if !$oDetailsProduct->isParentNotBuyable() }]
        [{include file="blocks/ys_giftcert_details_productmain_deliverytime.tpl"}]
    [{/if}]
[{/if}]