Is there a way for me to have the category info show, even if there are no products in that category?
Thx for any hep
DJ
/catalog/view/theme/[theme name]/template/product/category.tpl
to
Code: Select all
<?php if ($description) { ?>
<div style="margin-bottom: 15px;"><?php echo $description; ?></div>
<?php } ?>
Code: Select all
<div style="margin-bottom: 15px;"><?php echo $description; ?></div>
-Ryan
Thanks Ryan, but I followed those instructions and nothing happens.... the category description shows in the admin area but not on the live site UNTIL I add products... I would like to not have to add products, only have the sub categories description showing when a customer clicks on it.
What I basically want to do is have the following category structure:
Under Categories -
Fresh on the Farm (parent category)
- eggs (sub category 1 with description only)
- Whats Growing (sub category 2 with description only)
- Fresh Sheet (subcategory 3 with description only)
Any other suggestions?
What I basically want to do is have the following category structure:
Under Categories -
Fresh on the Farm (parent category)
- eggs (sub category 1 with description only)
- Whats Growing (sub category 2 with description only)
- Fresh Sheet (subcategory 3 with description only)
Any other suggestions?
Upon more searching I found this thread in the forums..... tried the suggested fix and it works fine now......
codecreator wrote: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:Code: Select all
if ($category_total || $product_total) {
Hope someone finds this helpful.Code: Select all
if ($category_total || $product_total || (!empty($this->data['description']))) {
Who is online
Users browsing this forum: No registered users and 6 guests