Page 1 of 1

[SOLVED] Display categories in product page

Posted: Wed Apr 01, 2015 10:20 pm
by jens_b
Hi,

How can display a products all asigned categories in the product page?

I'm on OpenCart 2.0.1.1 and found this free extension that does what I want, but it's for 1.5.3
http://www.opencart.com/index.php?route ... on_id=6915

Been trying to change it so it works with 2.0.1.1 but can't get it to work,
think it's the controller-file that's is the problem.

Can anyone help me with this?

Thanks!

Re: Display categories in product page

Posted: Thu Apr 02, 2015 7:29 pm
by plugables
If you can post the code someone may help you fix it.

Re: Display categories in product page

Posted: Wed Apr 08, 2015 6:26 pm
by jens_b
Ok so I got it working with some minor changes to this:

http://forum.opencart.com/viewtopic.php?f=131&t=109349

Code: Select all

Change 
line 11 $this->data['text_category'] 
to $data['text_category']

line 24 $this->data['manufacturer'] = $product_info['manufacturer']; 
to $data['manufacturer'] = $product_info['manufacturer'];

line 26 $this->data['categories'] = $categories;
to $data['categories'] = $categories;

catalog/view/theme/default/template/product/product.tpl
add position where you want it

Re: [SOLVED] Display categories in product page

Posted: Wed Aug 05, 2015 9:07 am
by motion2082
Didn't work on Opencart V2.0.3.1 :-[

Thanks for trying

Re: [SOLVED] Display categories in product page

Posted: Wed Oct 14, 2015 12:14 pm
by aljawaid
this didnt work in 2.0.3.1 for me either

Re: [SOLVED] Display categories in product page

Posted: Sun Oct 18, 2015 9:31 pm
by aljawaid
aljawaid wrote:this didnt work in 2.0.3.1 for me either
For anyone wanting this on v2.0.3.1 the solution and vqmod is here http://forum.opencart.com/viewtopic.php ... 84#p586484