Does anybody know how to display manufacture name on Product grid?
Thanks alot.
Thanks alot.
Last edited by alvin20031010 on Fri Feb 27, 2015 4:48 pm, edited 1 time in total.
Any help is much appreciated, for what i did is listed below, and just wondering if there is anything i missed?
1. Find : catalog/controller/product/category.php
Add: 'manufacturer' => $result['manufacturer'],
2. Find : catalog/view/theme/journal2/template/product/category.tpl
Add: <div class="manufacturer"><?php echo $product['manufacturer']; ?>
3. Refresh my browser
shown: Notice undefined index "manufacturer" ....catalog/view/theme/journal2/template/product/category.tpl......etc
1. Find : catalog/controller/product/category.php
Add: 'manufacturer' => $result['manufacturer'],
Code: Select all
$data['products'][] = array(
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name']
'manufacturer' => $result['manufacturer'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length'))
2. Find : catalog/view/theme/journal2/template/product/category.tpl
Add: <div class="manufacturer"><?php echo $product['manufacturer']; ?>
Code: Select all
<div class="product-details">
<div class="caption">
<div class="manufacturer"><?php echo $product['manufacturer']; ?> </div>
<h4 class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
<p class="description"><?php echo $product['description']; ?></p>
shown: Notice undefined index "manufacturer" ....catalog/view/theme/journal2/template/product/category.tpl......etc
Add manufacturer Field to category view Products:
viewtopic.php?f=182&t=170072&p=645653#p645254
Tested with OpenCart v-2.2.x
can be seen here:
http://www.jti.li
Good Luck !
Ernie
viewtopic.php?f=182&t=170072&p=645653#p645254
Tested with OpenCart v-2.2.x
can be seen here:
http://www.jti.li
Good Luck !

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
hi you can use this xml:
<?xml version="1.0" encoding="UTF-8" ?>
<modification>
<id><![CDATA[Manufacturer Name in Category]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.5.1]]></vqmver>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file name="catalog/controller/product/category.php">
<operation error="log">
<search position="after"><![CDATA[$result['name'],]]></search>
<add><![CDATA[
'manufacturer' => $result['manufacturer'],
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/product/category.tpl">
<operation error="log">
<search position="after"><![CDATA[<div class="caption">]]></search>
<add><![CDATA[
<div>Manufacturer: <?php echo $product['manufacturer']; ?></div>
]]></add>
</operation>
</file>
</modification>
<?xml version="1.0" encoding="UTF-8" ?>
<modification>
<id><![CDATA[Manufacturer Name in Category]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.5.1]]></vqmver>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file name="catalog/controller/product/category.php">
<operation error="log">
<search position="after"><![CDATA[$result['name'],]]></search>
<add><![CDATA[
'manufacturer' => $result['manufacturer'],
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/product/category.tpl">
<operation error="log">
<search position="after"><![CDATA[<div class="caption">]]></search>
<add><![CDATA[
<div>Manufacturer: <?php echo $product['manufacturer']; ?></div>
]]></add>
</operation>
</file>
</modification>
Who is online
Users browsing this forum: No registered users and 1 guest