Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Product Info too big for database

    Hi,

    I need to add a drop down box to the product info for a product, and the number of choices in the box is very large. It's basically every make/model/year of car. I get the drop down code from the manufacturer. But when I try to add it to my store page, it only accepts part of the code. It truncates it before the end which not only doesn't give all the available choices, but also breaks the code for the drop down box.

    Is there a way around this? The drop down code gets updated by the manufacturer periodically, and I need to be able to update the code as well as use it when someone orders the item.

    Any ideas or threads you can point me to? I couldn't find anything about this.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Product Info too big for database

    I'm not exactly sure where you're trying to add this or what page it needs to display on, but there isn't a DB limit that I know of. Check Admin - Configuration - Product Listing - Display Product Description

  3. #3
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Product Info too big for database

    Thank you.

    Mine was set at 150, and I changed it to unlimited. But it still truncates the code when I try to save it. I get up to the "C"s, and everything after that is gone. But it is a lot of data: 403K.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Product Info too big for database

    Maybe that info doesn't really belong as part of the product description?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Product Info too big for database

    Actually, it belongs as an attributes drop down box. But its a huge number of choices in the dropdown and gets updated from time to time. I can't add each one as an attribute. It would take forever. But at least if its in the product description people can find out if their car is supported.

    Any idea how to go forward on this?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Product Info too big for database

    The inefficient, and IMO wrong way to do it is to simply change the field type in your mysql database for products_description in the products_description table to be something that accepts insanely large amounts of data.

    The more efficient way would be to find a way to manage the commonalities between relevant items, and display that information accordingly. That involves studying the data itself, studying how to implement those customizations technically (whether it be PHP, database with one table or numerous tables, integrate with existing ZC features or build your own, etc) and so on. Obviously that's highly specific to your business, and really is much larger discussion than merely how to stuff extra data into a product description.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Product Info too big for database

    Yes, I understand what you're saying.

    Is there a way to include a separate html page into my product description. I think there is not, but just checking.

    I fully agree that changing the data base structure to handle data of that size is not a good solution. It's just too big, and keeps getting bigger as more vehicles are added to the list.

    What you are suggesting is doable, or, I should say, possible for me to figure out. But it's not worth that much work... or maybe I should say, I don't have that kind of time to develop. But If I could just include an html file inline with the details data, or maybe even on one of the checkout screens, that would be great. Is there a way to do that?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Product Info too big for database

    You can include any html by adding it into whichever template file you desire, according to where you want it to be displayed. This can be by pasting the actual html in the php file, or by creating another html or php file which you incorporate via an "include" statement.
    And if it requires being displayed only under certain conditions, you can wrap some PHP code around that html snippet (or "include" statement) to control when/whether it is displayed.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Product Info too big for database

    Hmmm. That is probably very workable. I started to get an inkling about that when I answered your last post. Thanks very much. I know what to do now. It'll be relatively easy, I think.

 

 

Similar Threads

  1. Body margins for products too big.
    By computeaholic in forum General Questions
    Replies: 3
    Last Post: 20 Jul 2011, 09:20 PM
  2. heading for categories too big!!!
    By Agent_KGB in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Feb 2009, 03:48 AM
  3. google translator too big for sidebox
    By pjgscrap in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Aug 2008, 06:42 AM
  4. Database getting way too big!
    By magicpants in forum General Questions
    Replies: 3
    Last Post: 1 Jul 2008, 02:04 PM

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