Hi, I answered another stackoverflow question how to show attributes of products in category page in Opencart 2.0 Although I suggest to use VqMod, but manually you can do following:

Open catalog/controller/product/category.php and find following code:


Now add one line in it ‘attribute_groups’ => $this->model_catalog_product->getProductAttributes($result[‘product_id’]), then the products array will be like below:


Now open catalog/view/theme/YOUR_THEME_FOLDER/template/product/category.tpl and add following codes just below <p><?php echo $product[‘description’]; ?></p>


Save and reload it will show attributes in category’s products



  1. I receive this warning:
    Notice: Undefined index: attribute_groups in /web/htdocs/ on line 139

  2. Hello rupak do you have this in ocmod to OC 2.0, this change works like a charm if edited manualy the files, but my objetive is create ocmod.I try to create another similar of this but the only change is show ‘sku value’ and i have some issues, in register say
    the line of search not found i put this line “‘thumb’ => $image,” Can you help me?

  3. Hi!
    I am using Opencast 2.2.0. I did exactly what you’ve said countless times.
    I copied the attributes display from product.php and .tpl . No luck.
    I get “Undefined index: attribute_groups in /var/www/virtual/…”
    I am getting crazy here. What am I missing?
    Thank you!

    • Hi Marius,

      You need to change at category.php and category.tpl
      I checked it at 2.2 version and it is working fine with above code.
      Please try it again ­čÖé
      Hope you will be able to fix it.

      Once I got chance I will publish OCMOD


        • Hi Eds,

          Yes it is possible but it will redundancy of category as we are already in category page so hope not needed to show category in category page for products.

          If needed I will soon write some code for it

  4. Worked for me. Thank you for posting this tutorial.

    How can modify this code to display attributes in this format?

    Attribute Name 1 Attribute Name 2 Attribute Name 3
    Attribute Value 1 Attribute Value 1 Attribute Value 1

    • Hi Faruk,

      It is easy in product page.
      You can add following code at catalog\view\theme\***\template\product\product.tpl where ever you want to show the attributes.

      I have take code from product.tpl, so you can remove those table tags and implement your design



Please enter your comment!
Please enter your name here