Zen Cart Logo

Attribute name length...

Locked

Views: 2,495

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
12 Mar 2007, 6:09 PM
#1
tcsdcc avatar

tcsdcc

New Zenner

Join Date:
Mar 2007
Posts:
8
Plugin Contributions:
0

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

13 Mar 2007, 4:09 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

14 Mar 2007, 1:43 PM
#3
tcsdcc avatar

tcsdcc

New Zenner

Join Date:
Mar 2007
Posts:
8
Plugin Contributions:
0

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

27 Aug 2008, 10:35 PM
#4
jonton26 avatar

jonton26

New Zenner

Join Date:
Jul 2008
Posts:
9
Plugin Contributions:
0

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

28 Aug 2008, 2:06 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...