Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 1 of 1

Thread: [BugFix] v1.5 Category Descriptions Bug

  1. #1
    osCMax Developer


    [BugFix] v1.5 Category Descriptions Bug

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,013
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    594


    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 Attached Files
    Michael Sasek

    osCmax 2.5.4 is now available via auto-installation using Softaculous!

    Stay Up To Date with everything osCMax:
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Adding Category Descriptions in Category List for each Cat.
    By el1jones in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 03-15-2006, 01:37 AM
  2. Bugfix 85-checkout_shipping_address checkout_payment_address
    By kenlyle in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 01-05-2006, 08:56 AM
  3. Category descriptions do not get saved.
    By datazen in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 11-13-2005, 01:19 PM
  4. Categories.php bugfix for larger stores
    By gamefreak7 in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 08-05-2005, 09:32 PM
  5. Question 2: Category Descriptions (Enabled, Not Showing)
    By xpressed in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 07-24-2004, 08:43 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •