Forums / Setting Up Categories, Products, Attributes / Expanding the product name field

Expanding the product name field

Started by tekram on 6 Dec 2008, 6:29 PM · Views: 7,215

Results 1 to 10 of 10
6 Dec 2008, 6:29 PM
#1
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Expanding the product name field

I am trying to figure out how i can extend the product field name length because the max length of 64 does not suffice.

Thanks!

6 Dec 2008, 6:30 PM
#2
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Re: Expanding the product name field

i meant expanding the field in the admin section when adding the product to the catalog

6 Dec 2008, 7:33 PM
#3
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Expanding the product name field

You can use phpmyadmin to do this. In your web host cotrol panel, click on phpmyadmin. Then select your zen cart database.

Find the table products_description on the left pane. Click on it. On the right side pane, find the field products_name. Click on the edit button, it looks like a pencil. In the length/values set to 255.

6 Dec 2008, 11:28 PM
#4
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Re: Expanding the product name field

actually the problem is not in the db. the actual field in the html form is too small.

7 Dec 2008, 2:25 AM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Expanding the product name field

You should be able to add a name longer than the field box. It should just scroll left.

If you need product names longer than 64 characters, bobdog's advice is correct.

7 Dec 2008, 5:55 PM
#6
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Re: Expanding the product name field

so, i just tried it and it maxes out at 64 characters. it only scrolls until you get to 64.

1234567890123456789012345678901234567890123456789012345678901234

that is all i can put in.

7 Dec 2008, 11:00 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Expanding the product name field

Exactly. That's because that field is set to 64 characters in the database. bobdog's advice will fix the problem.

25 Apr 2011, 2:21 AM
#8
enginarat avatar

enginarat

New Zenner

Join Date:
Mar 2011
Location:
Marco Island, FL
Posts:
71
Plugin Contributions:
0

Re: Expanding the product name field

stevesh:

Exactly. That's because that field is set to 64 characters in the database. bobdog's advice will fix the problem.

It won't work for me, either. There's no "length" option at where you directed us above. Please see attached screenshot. Thanks.

25 Apr 2011, 9:16 AM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Expanding the product name field

It's the type - varchar64. Edit that field and change it to varchar128, say.

24 Feb 2012, 9:25 PM
#10
scientific_anomaly avatar

scientific_anomaly

New Zenner

Join Date:
Nov 2010
Posts:
44
Plugin Contributions:
0

Re: Expanding the product name field

I just had to do the same thing - and fixed it so it is working now. There is a hilarious logical loop following the advice above in practice. If you actually drop the products_description table and try and upload a new one with your lengthy product names, the new sql upload defines the number of characters here:

products_name varchar(64) NOT NULL default '',

and undoes your previous efforts and puts the name length back to 64.

If you are going to drop and reload that table anyway, then this is the only place it needs changing - for example:

products_name varchar(72) NOT NULL default '',

(for a max of 72 characters in the product name)