Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    Because when I try to edit in the admin area in zencart, I am being limited on the length. Now I see that the length is limited in the database so would like to know how to make the max length in a column longer in the database.
    Quote Originally Posted by DivaVocals View Post
    ALL categories are stored in the CATEGORIES table.. (this includes SUB-categories)

    The BIGGER question is WHY are you editing the category description in the categories TABLE when there is an entire admin section that allows you to CREATE and EDIT categories where you can do this????

  2. #12
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Location of subcategory files

    Quote Originally Posted by hflsales View Post
    Because when I try to edit in the admin area in zencart, I am being limited on the length. Now I see that the length is limited in the database so would like to know how to make the max length in a column longer in the database.
    The length of what exactly.. the description??, the category title?? Where are you being limited and what is average length of what you are attempting to put in this column/field??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #13
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    Here is the page that is being limited on my site.....http://www.p3america.com/shop/index....ath=38_104_105 When I try to add more, the page becomes garbled, the footer goes on top, and the tables get completely messed up. Thank you for your help.
    Quote Originally Posted by DivaVocals View Post
    The length of what exactly.. the description??, the category title?? Where are you being limited and what is average length of what you are attempting to put in this column/field??

  4. #14
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Location of subcategory files

    The table type for categories_description in your database is TEXT, as mysql says:

    "A TEXT column can hold 64K (65,535 bytes) worth of data; LONGTEXT can hold 4GB (4,294,977,295 bytes). "

    there is a MEDIUMTEXT (who's capacity I don't know but would be between the two), change this under the 'structure' tab for this table

  5. #15
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    Thank you so much!!! This fixed my problem!
    Quote Originally Posted by simon1066 View Post
    The table type for categories_description in your database is TEXT, as mysql says:

    "A TEXT column can hold 64K (65,535 bytes) worth of data; LONGTEXT can hold 4GB (4,294,977,295 bytes). "

    there is a MEDIUMTEXT (who's capacity I don't know but would be between the two), change this under the 'structure' tab for this table

  6. #16
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Location of subcategory files

    No problem.

    BTW, I couldn't help but notice, when viewing your page source code that you have an erroneous </head> tag and a non-closed <body ...> tag at the start of your category description.

  7. #17
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Location of subcategory files

    Quote Originally Posted by simon1066 View Post
    there is a MEDIUMTEXT (who's capacity I don't know but would be between the two)
    ~16Mb.

    Note to OP.

    Changing from TEXT to MEDIUMTEXT can increase your database requirements/usage by about 250 times.
    Changing it to LONGTEXT can increase the requirement by about 65,000 times.

    This may or may not cause performance issues.

    If this were a field length that *I* needed to increase, I'd be inclined to use the VARCHAR field type, and define it to be a little over the maximum length that I think I'll ever need. 128K (double that of a 'standard' TEXT field) would probably suffice.

    Now having said that, I can't help wondering what kind of product_descriptions you are using that exceeds the original 64k limit. Are you embeding graphics into your descriptions or something?

    Cheers
    Rod

  8. #18
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Location of subcategory files

    Quote Originally Posted by RodG View Post
    Now having said that, I can't help wondering what kind of product_descriptions you are using that exceeds the original 64k limit. Are you embeding graphics into your descriptions or something?
    It looked as though they were adding products to the categories description's html. i.e wanting to have products and sub-categories in the same category. As that wasn't part of the question I thought I would wait, perhaps until they attempted to activate the cart buttons that have been added to the description. Probably had a reason for it doing it so.

  9. #19
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Location of subcategory files

    Quote Originally Posted by simon1066 View Post
    I thought I would wait, perhaps until they attempted to activate the cart buttons that have been added to the description
    That wasn't particularly helpful, apologies for that. If this is what you intend then I think you will have problems, better to list products within categories rather than try to code them into a categories description.
    Last edited by simon1066; 25 Apr 2013 at 01:14 PM.

  10. #20
    Join Date
    Mar 2009
    Posts
    88
    Plugin Contributions
    0

    Default Re: Location of subcategory files

    If I use VARCHAR field type, how do I define it to be 28k? I have never had to edit the database before & wouldn't want to screw anything up. There are a few graphics embedded in the html. That is probably why it is so long but it needs to be the way it is. The cart buttons will eventually point to the items product page. We just haven't gotten that far yet.
    Quote Originally Posted by RodG View Post
    ~16Mb.

    Note to OP.

    Changing from TEXT to MEDIUMTEXT can increase your database requirements/usage by about 250 times.
    Changing it to LONGTEXT can increase the requirement by about 65,000 times.

    This may or may not cause performance issues.

    If this were a field length that *I* needed to increase, I'd be inclined to use the VARCHAR field type, and define it to be a little over the maximum length that I think I'll ever need. 128K (double that of a 'standard' TEXT field) would probably suffice.

    Now having said that, I can't help wondering what kind of product_descriptions you are using that exceeds the original 64k limit. Are you embeding graphics into your descriptions or something?

    Cheers
    Rod

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 1 Sep 2013, 05:47 AM
  2. Skip subcategory link and list all subcategory products as product listing
    By ellivir in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2010, 05:06 PM
  3. Location of main files
    By icklebits in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 12 May 2007, 09:50 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR