[*] FO : Hide the download link if the virtual product do not have files associated with it

This commit is contained in:
lBrieu
2011-10-05 14:27:30 +00:00
parent 69ae41c235
commit 82507c9e8c
+1 -1
View File
@@ -245,7 +245,7 @@
<td><label for="cb_{$product.id_order_detail|intval}">{if $product.product_reference}{$product.product_reference|escape:'htmlall':'UTF-8'}{else}--{/if}</label></td>
<td class="bold">
<label for="cb_{$product.id_order_detail|intval}">
{if $product.download_hash && $invoice}
{if $product.download_hash && $invoice && $product.display_filename != ''}
{if isset($is_guest) && $is_guest}
<a href="{$link->getPageLink('get-file', true, NULL, "key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}&amp;id_order={$order->id}&secure_key={$order->secure_key}")}" title="{l s='download this product'}">
{else}