osCmax v2.5 User Manual
Results 1 to 8 of 8

Category descriptions do not get saved.

This is a discussion on Category descriptions do not get saved. within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I noticed that Category Descriptions are not getting saved. Anyone else experiencing this with v2 RC1?...

      
  1. #1
    Lurker
    Join Date
    May 2005
    Posts
    4
    Rep Power
    0


    Default Category descriptions do not get saved.

    I noticed that Category Descriptions are not getting saved. Anyone else experiencing this with v2 RC1?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: Category descriptions do not get saved.

    Please post some debug info :

    PHP, MYSQL, Apache, Linux versions. Also, do you have category descriptions enabled in the admin?

    No, you are the first that has posted this behavior. It is working fine in all test shops. The code that handles this has not been changed since v1.5.5.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  3. #3
    New Member pigdestroyer's Avatar
    Join Date
    Jan 2004
    Location
    London
    Posts
    13
    Rep Power
    0


    Default RE: Category descriptions do not get saved.

    I have seen the same behaviour. Although I can see that category descriptions are being written to the database, they are just not visible if you browse via the admin interface. For me this is the same whether or not category descriptions are enabled.

    Server OS:
    Linux 2.4.20-31.9smp

    Database:
    MySQL 4.0.17-standard

    HTTP Server:
    Apache/2.0.40 (Red Hat Linux)

    PHP Version:
    4.2.2 (Zend: 1.2.0)
    Holloway: It's all the same machine, right? The Pentagon, multinational corporations, the police. If you do one little job, you build a widget in Saskatoon, and the next thing you know, it's two miles under the desert, the essential component of a death machine.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: Category descriptions do not get saved.

    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  5. #5
    Lurker
    Join Date
    Sep 2005
    Posts
    1
    Rep Power
    0


    Default

    i got the same error - /catalog/admin/categories.php WAS NOT saving description text, for Categories & Product.

    looking in the HTML source, I decided that the problem was the naming of the textarea form element. The form expects the name of the textarea to be something like "categories_description[123]" (123 being the category ID)

    However, the form element is named "categories_description123".
    The string "categories_description" and the ID "123" are being concatinated, instead of forming it into an array object.

    anyhow. i changed two lines in /catalog/admin/categories.php and got the form to save my descriptions.

    --------------------------------------------------------------------
    LINE 506:

    original code:
    } else { echo tep_draw_textarea_field('categories_description' . $languages[$i]['id'],'soft','70','15',(isset($categories_description[$languages[$i]['id']]) ? $categories_description[$languages[$i]['id']] : tep_get_category_description($cInfo->categories_id, $languages[$i]['id']))) . '</td>';

    replace with this:
    } else { echo tep_draw_textarea_field('categories_description[' . $languages[$i]['id'].']','soft','70','15',(isset($categories_description[$languages[$i]['id']]) ? $categories_description[$languages[$i]['id']] : tep_get_category_description($cInfo->categories_id, $languages[$i]['id']))) . '</td>';
    ----------------------------------------

    LINE 900:
    original:
    } else { echo tep_draw_textarea_field('products_description' . $languages[$i]['id'],'soft','70','15',(isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))) . '</td>';

    replace it with this:
    } else { echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'].']','soft','70','15',(isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))) . '</td>';
    --------------------------------------------------------------------


    hope that helps.

  6. #6
    New Member
    Join Date
    Sep 2005
    Posts
    18
    Rep Power
    0


    Default

    I had the same problem.

    Thank you blinky!! That fix worked great!!

  7. #7
    New Member
    Join Date
    Oct 2005
    Posts
    6
    Rep Power
    0


    Default

    Ditto that! Nice one blinky!!

  8. #8
    Member
    Join Date
    Jul 2005
    Posts
    91
    Rep Power
    0


    Default

    Great! Thanks.

Similar Threads

  1. Product Description Text NOT Being Saved
    By JonCloud420 in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 07-07-2006, 08:59 AM
  2. Adding Category Descriptions in Category List for each Cat.
    By el1jones in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 03-15-2006, 12:37 AM
  3. english.php crashes when saved by the built in file editor
    By Trinity in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-22-2004, 01:06 AM
  4. 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
  5. [BugFix] v1.5 Category Descriptions Bug
    By michael_s in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 09-25-2003, 10:50 PM

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
  •