Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Product Options Values Length

    I have a text attribute that is set with a length of 80 chrs, however although the entry accepts this when the order is received the entry is truncated to 64 chrs.

    I've had a look in the database table orders_products_attributes (v 1.2.6) and see that products_options_values has a 64 chr limit which seems to be the problem. Can I increase this limit eg 128 without causing a problem elsewhere?

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

    Default Re: Product Options Values Length

    In older versions you have to manual change the field length in a couple of tables ...

    Are you able to upgrade?

    If not, in v1.3.x we changed the table fields to:
    PHP Code:
    ALTER TABLE customers_basket_attributes CHANGE products_options_value_text products_options_value_text BLOB NULL DEFAULT NULL;
    ALTER TABLE orders_products_attributes CHANGE products_options_values products_options_values BLOB NOT NULL
    NOTE: This would have to be tested to assure that this is enough of a change in your version ... I am pretty sure that is all you will need ... I think ...
    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
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: Product Options Values Length

    Thanks Linda that did the trick and for anyone else reading this has worked for v 1.2.6.

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

    Default Re: Product Options Values Length

    Thanks for the update that this was able to work in older versions of Zen Cart for larger Option Value TEXT lengths ...
    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!

  5. #5
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: Product Options Values Length

    You're welcome! One other tip - I removed the <nobr> that was wrapping the attribute option value in tpl_checkout_confirmation.php around line 110 so that long message values wrap rather than push the page out.

  6. #6
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: Product Options Values Length

    Quote Originally Posted by patski
    You're welcome! One other tip - I removed the <nobr> that was wrapping the attribute option value in tpl_checkout_confirmation.php around line 110 so that long message values wrap rather than push the page out.
    Thank you to both Linda and Patski.

    I had already changed the varchar on Table: orders_products_attributes / products_options_values to TEXT before I read this thread, so before I excuted the SQL you provided, I changed the BLOB to TEXT. It worked, as did the removal of <nobr></nobr>

    Thanks again.
    TecBrat.

  7. #7
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Product Options Values Length

    I am trying to lengthen the field length in the option names. I have searched in the db, plus tried the statement above, which generated a phpmyadmin error message about my syntax

    help...please

    betty

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

    Default Re: Product Options Values Length

    In phpMyAdmin ...

    Display the structure of:
    products_options

    Click edit on:
    products_options_names

    Change the Length/Values from 32 to 64 or the size you need up to 255

    Then, display the structure of:
    orders_products_attributes

    Click edit on:
    products_options

    Change the Length/Values from 32 to 64 or the size you need up to 255
    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!

  9. #9
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Product Options Values Length

    thank you Ajeh!!

    Once this client is up to v1.35 will I do it the same way or by using your statements above??

    again, thank you

    Betty

    (also I know I've already asked this twice but with no replies. How do I get the downloaded files to show up in sales? I figure it's attributes so I would run it buy you. Please feel free to delete this part if you prefer.)

  10. #10
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Product Options Values Length

    Well....darn it Ajeh - it ended up not working the way I thought it would It is the
    option name that I need longer in the db.

    betty

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Displaying Product Price Next to Options Values
    By cqdeline in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Mar 2011, 04:37 AM
  2. Linking attribute values to to product values (for custom gift baskets)
    By peaceviddie in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 13 Jul 2008, 09:22 PM
  3. Add Product Options/Values to ALL products
    By DiZZ in forum General Questions
    Replies: 3
    Last Post: 24 Nov 2007, 06:53 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