This is a discussion on [BugFix] v1.5 Category Descriptions Bug within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi all, This bugfix corrects a problem with the Category Descriptions mod in MS2-MAX v1.5.1 and earlier. Bug Description This ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Hi all, This bugfix corrects a problem with the Category Descriptions mod in MS2-MAX v1.5.1 and earlier. Bug Description This bug causes category descriptions in Sub Categories not to display, as well as any new Main category descriptions that you may add. Bug Fix If you have not made any changes to the index_products.tpl.php file, just unzip the attached archive and upload the file to your /catalog/templates/content directory, overwriting the existing file. If you have made changes to the file, find this code: Code: // Get the right image for the top-right
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
$image = tep_db_fetch_array($image);
$image = $image['manufacturers_image'];
} elseif ($current_category_id) {
$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$image = tep_db_fetch_array($image);
$image = $image['categories_image'];
}
?>
<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
Code: <?php if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_description'])) ) { ?>
<tr>
<td align="left" colspan="2" class="category_desc"><?php echo $category['categories_description']; ?></td>
</tr>
<?php } ?>
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Category Descriptions in Category List for each Cat. | el1jones | osCMax v2 Customization/Mods | 1 | 03-15-2006 12:37 AM |
| Bugfix 85-checkout_shipping_address checkout_payment_address | kenlyle | osCMax v2 Features Discussion | 1 | 01-05-2006 07:56 AM |
| Category descriptions do not get saved. | datazen | osCMax v2 Installation issues | 7 | 11-13-2005 12:19 PM |
| Categories.php bugfix for larger stores | gamefreak7 | osCMax v2 Installation issues | 0 | 08-05-2005 09:32 PM |
| Question 2: Category Descriptions (Enabled, Not Showing) | xpressed | osCMax v1.7 Discussion | 3 | 07-24-2004 08:43 AM |