bisam,
I am on 1.29 but the work around should be similar. Essentially you need to modify the conditional that is used to determine whether to display the standard template when the category has assigned subcategories/products or display the "error/not_found.tpl" template.
The conditional statement can be found on or about line 91 of catalog/controller/product/category.php:
As you can see the conditional is based on whether there are any subcategories or products for the selected category. You can modify it to suit your requirements. I modified it like this:
HTH
I am on 1.29 but the work around should be similar. Essentially you need to modify the conditional that is used to determine whether to display the standard template when the category has assigned subcategories/products or display the "error/not_found.tpl" template.
The conditional statement can be found on or about line 91 of catalog/controller/product/category.php:
Code: Select all
if (($category_total) || (product_total)) {
Code: Select all
if ( ($category_total) || (product_total)) || (!empty($this->data['description'])) ) {
I upgraded to 1.3.2 and applied this modification and discovered a typo in the code from my previous post. So, here is a copy/paste version of the corrected code for v1.3.2:
On or about line 93 of {your_store_directory}/catalog/controller/product/category.php:
Modify this line to read:
Hope someone finds this helpful.
On or about line 93 of {your_store_directory}/catalog/controller/product/category.php:
Code: Select all
if ($category_total || $product_total) {
Code: Select all
if ($category_total || $product_total || (!empty($this->data['description']))) {
Dredging up an old post here to see if there's a way to get the description to display as well as keep the no products message?
I tried adding this to the else statement but that didn't have any results. Of course, it can't be that simple.
I tried adding this to the else statement but that didn't have any results. Of course, it can't be that simple.

Code: Select all
$this->data['description'] = $category_info['description'];
Who is online
Users browsing this forum: No registered users and 65 guests