Reputation: 73
I am trying to show manufacturer name in category product. adding following code show some
error
"Undefined index: manufacturer_id in C:\wamp\www\pcc\catalog\controller\product\category.php"
$this->load->model('catalog/manufacturer');
$manufacturer = $this->model_catalog_manufacturer->getManufacturer($result['manufacturer_id']);
please give me some idea i want to show manufacturer name with each product in category page.
Upvotes: 0
Views: 669
Reputation: 1724
You should modify the CORE of opencart or you should use OCMod.
something like $this->model_catalog_manufacturer->getManufacturer($product_info['manufacturer_id']);
will return the manufacturer data. then you can retrieve what you want (image, name and...).
you can find the solution here
you can find some tutorial here too, but it's about product page. for category page it's same.
Upvotes: 1