Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2007
    Posts
    8
    Plugin Contributions
    0

    Default Attribute name length...

    We need a way to increase the attribute name length from 32 to upwards of 200. I have searched around and found very little information on the subject so i figured i would make a thread. We are using the attributes so a user can flag any number of 15 potential reasons there device could have gone bad for a product called "warranty". Any help would be most appreciated.

    jordan

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute name length...

    I am guessing that you are referring to either or both of:
    products_options_name in the products_options table

    NOTE: there is a Comment field for the Option Names if that helps

    or to the:
    products_options_values_name in the products_options_values table

    You would then have to also update the orders_products_attributes table for the field:
    products_option

    Be sure to check orders from start to finish to ensure nothing is cut off ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Attribute name length...

    For my first venture into editing SQL on here that went surprisingly well. Thanks Linda.

    For anyone interested in having extremely long attribute values try:

    ALTER TABLE products_options_values CHANGE products_options_values_name products_options_values_name VARCHAR( 255 );

    you can replace 255 with any value between 1-255. NOTE: Text will not automatically wrap so you have to count characters and use "<br>" in your attrib/values.

    jordan

  4. #4
    Join Date
    Jul 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Attribute name length...

    Hi there

    I;ve used this trick, however it's not doing it for me.
    In the admin panel, I still can't change the Option names to what I want...

    I might have to get into the actual SQL tables...bummer

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute name length...

    The Zen Cart Admin cannot change your field length beyond what it is already defined as ...

    This is the database itself and you can make those changes via phpMyAdmin ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Product name length
    By Glock1 in forum General Questions
    Replies: 5
    Last Post: 3 Nov 2011, 04:13 PM
  2. Product name length
    By Laplandia in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 3 Nov 2011, 04:04 PM
  3. Product Name length
    By Shawn Parr in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 11 Mar 2011, 09:11 PM
  4. Length of Item name
    By outeredge2 in forum General Questions
    Replies: 9
    Last Post: 11 Aug 2010, 05:21 PM
  5. Product Name Length
    By Dashizna in forum General Questions
    Replies: 12
    Last Post: 24 Jul 2008, 04:59 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