$module_instance['count']

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart Theme$module_instance['count']

This topic has been marked as resolved.

Hello,
in Shoppica 2 (2.2.2) theme and Opencart 1.5.5.1 seems to be something wrong with category.tpl code.

Doesn’t matter, if the count of the products is allowed or not (I have it dissalowed), hereunder errors displays to me.

This fault appears, when module Category is set up as the side module od the product/category/etc page.

Errors:
Notice: Undefined index: count in /catalog/view/theme/shoppica2/template/module/category.tpl on line 5
Notice: Undefined index: count in /catalog/view/theme/shoppica2/template/module/category.tpl on line 9
Notice: Undefined index: count in /catalog/view/theme/shoppica2/template/module/category.tpl on line 24

Line 5
<!--?php if ($module_instance['count']) $categories = $tbData--->getCategoryTreeWithTotalProductsMaxLevel2(); else $categories = $tbData-&gt;category_tree; ?&gt;
Line 9
<!--?php if ($module_instance['count']): ?--> (<!--?php echo $category['products_count']; ?-->)<!--?php endif; ?-->
Line 24
<!--?php if ($module_instance['count']): ?--> (<!--?php echo $category['products_count']; ?-->)<!--?php endif; ?-->

February 12, 2013 at 12:15 pm #18645
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
February 12, 2013 at 1:01 pm #18669
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.