Post by hassanpk » Fri Oct 21, 2016 6:49 pm

I am trying to show the product model in the category page.
I have added 'model'=> $result['model'] in the /catalog/controller/product/category.php

$data['products'][] = array(

'product_id' => $result['product_id'],

'thumb' => $image,
'name' => $result['name'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
'price' => $price,
'special' => $special,
'tax' => $tax,
'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1,
'rating' => $result['rating'],
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url),
'model' => $result['model']
);
also i have edited category.tpl
<h4 class="model"><?php echo $product['model']; ?></h4>

but category page erro show.

: Undefined index: model in
*\catalog\view\theme\*\template\product\category.tpl

Newbie

Posts

Joined
Fri Oct 21, 2016 6:39 pm

Post by IP_CAM » Mon Oct 24, 2016 8:33 am

Just look here, to find a solution:
viewtopic.php?f=182&t=170072&p=645653#p645254

Good Luck! ;)
Ernie

Attachments

manufacturer_in_catagory.jpg

manufacturer_in_catagory.jpg (77.43 KiB) Viewed 309 times

Last edited by IP_CAM on Sat Nov 12, 2016 1:51 pm, edited 2 times in total.

I am no longer active at this Forum.
Please don't send Personal Messages, contact: jti@jacob.ch
---
Github OC Downloads: https://github.com/IP-CAM
2'000+ FREE OC Extensions from the World's largest Github OC Archive.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by opencartboost » Mon Oct 24, 2016 4:25 pm

May be this link will help you :
viewtopic.php?f=190&t=149352

Active Member

Posts

Joined
Thu Jul 09, 2015 5:59 am

Post by hassanpk » Sat Nov 12, 2016 1:41 pm

Thanks But My Problem solved

Newbie

Posts

Joined
Fri Oct 21, 2016 6:39 pm
Who is online

Users browsing this forum: Google [Bot] and 16 guests