diff --git a/modules/pdproductattributeslist/pdproductattributeslist.php b/modules/pdproductattributeslist/pdproductattributeslist.php index 74eade92..eeded9c5 100644 --- a/modules/pdproductattributeslist/pdproductattributeslist.php +++ b/modules/pdproductattributeslist/pdproductattributeslist.php @@ -416,7 +416,6 @@ class PdProductAttributesList extends Module $sql = 'SELECT pa.`id_product_attribute`, pa.`id_product`, pa.`reference`, pa.`ean13`, pa.`mpn`, pas.`weight` as weight_impact, p.`weight` as weight_base, pa.`minimal_quantity`, ag.`id_attribute_group`, ag.`is_color_group`, agl.`public_name` AS group_name, al.`name` AS attribute_name, al.`name` AS attribute_name_html, a.`id_attribute`, a.`color` - m.`id_manufacturer`, m.`name` AS manufacturer_name FROM `'._DB_PREFIX_.'product_attribute` pa INNER JOIN `'._DB_PREFIX_.'product_attribute_shop` pas ON (pas.id_product_attribute = pa.id_product_attribute AND pas.id_shop = '.(int)$id_shop.') @@ -426,7 +425,6 @@ class PdProductAttributesList extends Module LEFT JOIN `'._DB_PREFIX_.'attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = '.(int)$id_lang.') LEFT JOIN `'._DB_PREFIX_.'attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = '.(int)$id_lang.') LEFT JOIN `'._DB_PREFIX_.'product` p ON (p.`id_product` = '.(int)$id_product.') - LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON (m.`id_manufacturer` = p.`id_manufacturer`) WHERE pa.`id_product` = '.(int)$id_product.' ORDER BY pa.`id_product_attribute`'; @@ -434,7 +432,6 @@ class PdProductAttributesList extends Module $results = Db::getInstance()->ExecuteS($sql); $return = array(); $product = new Product($id_product, false, $id_lang, $id_shop); - $manufacturer = new Manufacturer($product->id_manufacturer, $id_lang); $context = Context::getContext(); $specific_price_output = null; $only_in_stock = Configuration::get('PD_PAL_ONLY_IN_STOCK'); @@ -558,8 +555,6 @@ class PdProductAttributesList extends Module $r['id_product_attribute'] ); $return[$r['id_product_attribute']]['available_date'] = $product->available_date; - $return[$r['id_product_attribute']]['id_manufacturer'] = $manufacturer->id; - $return[$r['id_product_attribute']]['manufacturer_name'] = $manufacturer->name; } @@ -683,8 +678,6 @@ class PdProductAttributesList extends Module ), 'quantity' => StockAvailable::getQuantityAvailableByProduct($id_product, 0, $id_shop), 'available_date' => $product->available_date, - 'id_manufacturer' => $manufacturer->id, - 'manufacturer_name' => $manufacturer->name, ]; } diff --git a/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl b/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl index 267a53a6..1b6f5811 100644 --- a/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl +++ b/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl @@ -103,15 +103,12 @@ {/foreach} -
{/if}