1{** 2 * Copyright since 2007 PrestaShop SA and Contributors 3 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 4 * 5 * NOTICE OF LICENSE 6 * 7 * This source file is subject to the Open Software License (OSL 3.0) 8 * that is bundled with this package in the file LICENSE.md. 9 * It is also available through the world-wide-web at this URL: 10 * https://opensource.org/licenses/OSL-3.0 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@prestashop.com so we can send you a copy immediately. 14 * 15 * DISCLAIMER 16 * 17 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 18 * versions in the future. If you wish to customize PrestaShop for your 19 * needs please refer to https://devdocs.prestashop.com/ for more information. 20 * 21 * @author PrestaShop SA and Contributors <contact@prestashop.com> 22 * @copyright Since 2007 PrestaShop SA and Contributors 23 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 24 *} 25 26{extends file="helpers/view/view.tpl"} 27 28{block name="override_tpl"} 29<div class="panel"> 30 <div class="panel-heading">{$supplier->name} - {l s='Number of products:'} {count($products)}</div> 31 <table class="table"> 32 <thead> 33 <tr> 34 <th><span class="title_box">{l s='Product name'}</span></th> 35 <th><span class="title_box">{l s='Attribute name'}</span></th> 36 <th><span class="title_box">{l s='Supplier Reference'}</span></th> 37 <th><span class="title_box">{l s='Wholesale price'}</span></th> 38 <th><span class="title_box">{l s='Reference' d='Admin.Global'}</span></th> 39 <th><span class="title_box">{l s='EAN13'}</span></th> 40 <th><span class="title_box">{l s='UPC'}</span></th> 41 <th><span class="title_box">{l s='MPN' d='Admin.Catalog.Feature'}</span></th> 42 {if $stock_management && $shopContext != Shop::CONTEXT_ALL}<th class="right"><span class="title_box">{l s='Available Quantity'}</span></th>{/if} 43 </tr> 44 </thead> 45 <tbody> 46 {foreach $products AS $product} 47 {if !$product->hasAttributes()} 48 <tr> 49 <td><a class="btn btn-link" href="{$link->getAdminLink('AdminProducts', true, ['id_product' => $product->id, 'updateproduct' => '1'])|escape:'html':'UTF-8'}">{$product->name}</a></td> 50 <td>{l s='N/A'}</td> 51 <td>{if empty($product->product_supplier_reference)}{l s='N/A'}{else}{$product->product_supplier_reference}{/if}</td> 52 <td>{if empty($product->product_supplier_price_te)}0{else}{$product->product_supplier_price_te}{/if}</td> 53 <td>{if empty($product->reference)}{l s='N/A'}{else}{$product->reference}{/if}</td> 54 <td>{if empty($product->ean13)}{l s='N/A'}{else}{$product->ean13}{/if}</td> 55 <td>{if empty($product->upc)}{l s='N/A'}{else}{$product->upc}{/if}</td> 56 <td>{if empty($product->mpn)}{l s='N/A'}{else}{$product->mpn}{/if}</td> 57 {if $stock_management && $shopContext != Shop::CONTEXT_ALL}<td class="right" width="150">{$product->quantity}</td>{/if} 58 </tr> 59 {else} 60 {foreach $product->combination AS $id_product_attribute => $product_attribute} 61 <tr {if $id_product_attribute %2}class="alt_row"{/if} > 62 <td><a class="btn btn-link" href="{$link->getAdminLink('AdminProducts', true, ['id_product' => $product->id, 'updateproduct' => '1'])|escape:'html':'UTF-8'}">{$product->name}</a></td> 63 <td>{if empty($product_attribute.attributes)}{l s='N/A'}{else}{$product_attribute.attributes}{/if}</td> 64 <td>{if empty($product_attribute.product_supplier_reference)}{l s='N/A'}{else}{$product_attribute.product_supplier_reference}{/if}</td> 65 <td>{if empty($product_attribute.product_supplier_price_te)}0{else}{$product_attribute.product_supplier_price_te}{/if}</td> 66 <td>{if empty($product_attribute.reference)}{l s='N/A'}{else}{$product_attribute.reference}{/if}</td> 67 <td>{if empty($product_attribute.ean13)}{l s='N/A'}{else}{$product_attribute.ean13}{/if}</td> 68 <td>{if empty($product_attribute.upc)}{l s='N/A'}{else}{$product_attribute.upc}{/if}</td> 69 <td>{if empty($product_attribute.mpn)}{l s='N/A'}{else}{$product_attribute.mpn}{/if}</td> 70 {if $stock_management && $shopContext != Shop::CONTEXT_ALL}<td class="right">{$product_attribute.quantity}</td>{/if} 71 </tr> 72 {/foreach} 73 {/if} 74 {/foreach} 75 </tbody> 76 </table> 77</div> 78{/block} 79 80