diff --git a/admin-dev/themes/default/template/controllers/suppliers/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/suppliers/helpers/view/view.tpl index 8ce702b06..db49a35d2 100644 --- a/admin-dev/themes/default/template/controllers/suppliers/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/suppliers/helpers/view/view.tpl @@ -30,55 +30,44 @@
| {l s='Product name'} | +{l s='Attribute name'} | +{l s='Supplier Reference'} | +{l s='Wholesale price'} | +{l s='Reference'} | +{l s='EAN13'} | +{l s='UPC'} | + {if $stock_management && $shopContext != Shop::CONTEXT_ALL}{l s='Available Quantity'} | {/if} +
|---|
| {l s='Name'} {$product->name} | - {if !empty($product->product_supplier_reference)}{l s='Supplier Reference:'} {$product->product_supplier_reference} | {/if} - {if !empty($product->product_supplier_price_te)}{l s='Wholesale price:'} {$product->product_supplier_price_te} | {/if} - {if !empty($product->reference)}{l s='Reference:'} {$product->reference} | {/if} - {if !empty($product->ean13)}{l s='EAN13:'} {$product->ean13} | {/if} - {if !empty($product->upc)}{l s='UPC:'} {$product->upc} | {/if} - {if $stock_management}{l s='Available Quantity:'} {$product->quantity} | {/if} -
|---|
| {l s='Attribute name'} | -{l s='Supplier Reference'} | -{l s='Wholesale price'} | -{l s='Reference'} | -{l s='EAN13'} | -{l s='UPC'} | - {if $stock_management && $shopContext != Shop::CONTEXT_ALL}{l s='Available Quantity'} | {/if} + {foreach $product->combination AS $id_product_attribute => $product_attribute} +|
|---|---|---|---|---|---|---|---|
| {$product->name} | +{if empty($product_attribute.attributes)}{l s='N/A'}{else}{$product_attribute.attributes}{/if} | +{if empty($product_attribute.product_supplier_reference)}{l s='N/A'}{else}{$product_attribute.product_supplier_reference}{/if} | +{if empty($product_attribute.product_supplier_price_te)}{l s='N/A'}{else}{$product_attribute.product_supplier_price_te}{/if} | +{if empty($product_attribute.reference)}{l s='N/A'}{else}{$product_attribute.reference}{/if} | +{if empty($product_attribute.ean13)}{l s='N/A'}{else}{$product_attribute.ean13}{/if} | +{if empty($product_attribute.upc)}{l s='N/A'}{else}{$product_attribute.upc}{/if} | + {if $stock_management && $shopContext != Shop::CONTEXT_ALL}{$product_attribute.quantity} | {/if}
| {$product_attribute.attributes} | -{$product_attribute.product_supplier_reference} | -{$product_attribute.product_supplier_price_te} | -{$product_attribute.reference} | -{$product_attribute.ean13} | -{$product_attribute.upc} | - {if $stock_management && $shopContext != Shop::CONTEXT_ALL}{$product_attribute.quantity} | {/if} -