- Разработано сообществом OpenCart
- Документация включена
Как отобразить логотип производителя на странице продукта в Opencart
Установка:
step 1) open /catalog/model/catalog/product.php
step 2) find the first(ver. 1.4.9.1) public function getProduct($product_id) and insert into DB query this code
m.image AS manufacturer_logo
like this , p.image, m.image AS manufacturer_logo, m.name AS manufacturer, ....
SAVE and go to step 3
step 3) open /catalog/controller/product/product.php and find code like this
$this->data['model'] = $product_info['model'];
$this->data['manufacturer'] = $product_info['manufacturer'];
and insert new line
$this->data['manufacturer_logo'] = $product_info['manufacturer_logo'];
SAVE and go to step 4
step 4) open product.tpl in your theme for example:
/catalog/view/theme/default/template/product/product.tpl and insert code like this