osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

[BugFix] v1.5 Category Descriptions Bug

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-25-2003, 11:50 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,083
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default [BugFix] v1.5 Category Descriptions Bug

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>
And, immediately after the </tr> tag, add the following code:
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 } ?>
Thats it. Bug Fixed. This updates the current full version to v1.5.2.
Attached Files
File Type: zip index_products_tpl.zip (1.5 KB, 55 views)
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 01:37 AM
Bugfix 85-checkout_shipping_address checkout_payment_address kenlyle osCMax v2 Features Discussion 1 01-05-2006 08:56 AM
Category descriptions do not get saved. datazen osCMax v2 Installation issues 7 11-13-2005 01:19 PM
Categories.php bugfix for larger stores gamefreak7 osCMax v2 Installation issues 0 08-05-2005 10:32 PM
Question 2: Category Descriptions (Enabled, Not Showing) xpressed osCMax v1.7 Discussion 3 07-24-2004 09:43 AM


All times are GMT -8. The time now is 11:59 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax