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



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

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


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,761
Thanks: 139
Thanked 609 Times in 521 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, 56 views)
__________________
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 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


All times are GMT -8. The time now is 04:32 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design