Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2010
    Posts
    5
    Plugin Contributions
    0

    Default Problem increasing Option Value Length - Please Help

    I'm tried increasing the maximum Option Value Length from 64 to 255 characters. I did this by doing the following:

    1. In phpMyAdmin I navigated to the structure of znc_products_options_values
    2. Changed products_options_values_names to varchar(255) from varchar(64)

    This did indeed allow me to enter Option Values up to 255!! Great I thought....

    But now when I go to the Attribute Controller to edit an option for a specific product I get the following error message:

    Attribute Option and Option Value Do NOT Match - Attribute was not changed - Quantity : TEXT

    Editing any attribute with a value less than 64 characters still works just fine.

    I'm guessing I missed a an entry in the database that needs to be changed. I'm using ZenCart v1.3.9h and would greatly appreciate any help in this matter!!

    Thanks,

    Sam

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

    Default Re: Problem increasing Option Value Length - Please Help

    On the Option Name, what is the Option Type that you are having issues with?
    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 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problem increasing Option Value Length - Please Help

    Thank you so much for chiming in Ajeh!!!

    The Option Type is Radio.

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

    Default Re: Problem increasing Option Value Length - Please Help

    I changed my database:
    1. In phpMyAdmin I navigated to the structure of znc_products_options_values
    2. Changed products_options_values_names to varchar(255) from varchar(64)

    I then tried working with Attributes Controller to add/edit Attributes with the longer names and have no problems ...

    Do you have a click for click of what you are doing to reproduce the problem?
    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
    Mar 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problem increasing Option Value Length - Please Help

    As I started doing a click-for-click recreation to share with you... I stumbled upon something. It appears that the problem is not with the length of the entry, but with the contents themselves! Here is an example...

    Code:
    2 Bottles for <strong>$47.90</strong> / $23.95ea <span style="color:white; background-color:green;">##Save $8.00 </span>
    This is over 64 characters and fails when I try to edit a specific product's entry in the Attribute Controller.

    However if I remove the span tags and just use regular text it works fine. The problem appears to be due to the span tag...ugh The strong tag works fine.

    The customer I have wants to have the formatting that is contained within those span tags.

    Any suggestions? I'm at a loss.

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

    Default Re: Problem increasing Option Value Length - Please Help

    You need to make a new class for the span tag and use it with single quotes:
    2 Bottles for <strong>$47.90</strong> / $23.95ea <span class='mygreen'>##Save $8.00 </span>
    Or you can try with single quotes:
    2 Bottles for <strong>$47.90</strong> / $23.95ea <span style='color:white; background-color:green;'>##Save $8.00 </span>
    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!

  7. #7
    Join Date
    Mar 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Problem increasing Option Value Length - Please Help

    Single Quotes!!!!!!! LOL.

    It's people like you Ajeh that make the world a better place

    I appreciate your help in resolving this issue and making me a happy camper!!!!!!


    Regards,

    Sam

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

    Default Re: Problem increasing Option Value Length - Please Help

    Thanks for the update that this worked for you ...
    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
    Nov 2004
    Posts
    53
    Plugin Contributions
    0

    Default Re: Problem increasing Option Value Length - Please Help

    this helped me to, works great....

    thx

 

 

Similar Threads

  1. Option Value Length
    By greatlakesherbalife in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 27 Apr 2010, 01:26 AM
  2. Attributes Controller - Increasing rows displayed for Option Name and Option Value?
    By ThisSideOfTheCross in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 23 Apr 2010, 05:13 AM
  3. Increasing the option comments length
    By ktomas in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Dec 2009, 09:42 PM
  4. Option Name/Option Value problem. Kindly help.
    By natgeo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 Jan 2009, 06:51 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