February 1, 201412 yr Hello everyone I am having trouble with Opencart 1.5.6.1. whenever I add more than 5 sub-categories and if I click on the parent category hen I get the following error (also see attached screenshot): Notice: Undefined variable: category in/homepages/27/xxxxxxx/htdocs/www.xxxxx.com/catalog/view/theme/xxxxxxx/template/product/category.tpl on line 60 I have tried clean install, on ftp, on localhost, with sample data and without sample data and yet getting the same error. Below is the line 59 to 62 area in my category.tpl file: <?php for ($i = 0; $i < count($categories) { $name = str_replace("(", '<span class="">(', $category['name'] ); $category['name'] = str_replace(")", ')</span>', $name); ?> Please advice thank you Regards
February 4, 201412 yr Author Dear Web Designers and Developers, I have managed to fix this, Please delete this topic
February 5, 201412 yr I don't use Opencart but it would be nice to share your solution in case other people run into the same problem?
Create an account or sign in to comment