Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    10
    Plugin Contributions
    0

    Default Option/Name Value character limit

    Is it possible to hack the character limit on the Option/Name values?

    I have values which exceed the current character limit, perhaps I am going about this the wrong way but I am curious if there is a hack to allow me to extend the limit for both values (or) hack the code to input my values.

    Anyone?

    TIA

    Daveage

  2. #2
    Join Date
    May 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: Option/Name Value character limit

    I'd like to describe this a bit further as I have received no replys:

    Apparently the Attribute Name value has a character limit of approx. 64 characters.
    The Option value has a character limit of approx. 42 characters.

    What I am trying to do is set an attribute option of let's say "Additional Rail" ok, this works fine because is is below the 42 character limit.

    Now when I set the name value to let's say "over 16' including 8' rail, rack, connecting plates and 3 additional brackets" it exceeds the character limit of 64 for name value and ends up displaying "over 16' including 8' rail, rack, connecting plates and 3 additi"

    Basically I have products with options. I'm using the "Option value" to label the option and the "Name value" to describe the option.

    This is why I would like to be able to extend the character values for both fields. Is this possible within mySQL?

    Or is there a better way to approach this?

    Thanks!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Option/Name Value character limit

    You could change the option_values table for the field products_options_values_name from 64 to 96 or 128 ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    May 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: Option/Name Value character limit

    Thank you soo much Linda!

  5. #5
    Join Date
    Dec 2006
    Location
    Chicago, IL
    Posts
    150
    Plugin Contributions
    1

    Default Re: Option/Name Value character limit

    I would like to increase the Options Name character size. In the SQL table there is the following:

    1. products_options_types
    2. products_options_values
    3. products_options_values_to_products_options

    I am using 1.3.7. Which one is the one to select?

    Additionally, I found the following on the forum. Please let me know if this is correct to use (with file name changes) to increase the character size of the Options Name.

    Code:
     ALTER TABLE `products_options_values` CHANGE `products_options_values_name` `products_options_values_name` VARCHAR( 64) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL
    I look forward to your replies. Thank you.
    [FONT=Palatino Linotype]Contribution Start:[/FONT]
    [FONT=Palatino Linotype]SHINE Live Help Sidebox[/FONT]

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Option/Name Value character limit

    Changing the Option Name involves a few tables:
    table: products_options
    field: products_options_name

    table: orders_products_attributes
    field: products_options

    This is safest to Backup your database

    Then via phpMyAdmin browse the structure of the tables and edit the fields you want changed and make the change in there ...

    This way you have the specifics already configured for your table, fields and settings where only the size is being changed by 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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #7
    Join Date
    Dec 2006
    Location
    Chicago, IL
    Posts
    150
    Plugin Contributions
    1

    Default Re: Option/Name Value character limit

    Thank you Ajeh. I will try this tonight and report back.
    [FONT=Palatino Linotype]Contribution Start:[/FONT]
    [FONT=Palatino Linotype]SHINE Live Help Sidebox[/FONT]

 

 

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
  •