Zen Cart Logo
Forums / Customization from the Admin / How can I change the field length for product description?

How can I change the field length for product description?

Views: 3,287

Results 1 to 12 of 12
7 Nov 2014, 6:42 PM
#1
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

How can I change the field length for product description?

I thought it would be in the Admin Configuration area, but If it is, I can't identify it.

7 Nov 2014, 7:34 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: How can I change the field length for product description?

Admin - Configuration - Product Listing - Display Product Description

The default is 150 characters.

7 Nov 2014, 8:56 PM
#3
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Re: How can I change the field length for product description?

I"m sorry, I meant Product Name. Under Product Name it has a value of "2". I know that isn't what I'm looking for as I already have over 60 characters. I just need one more space.

7 Nov 2014, 9:39 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: How can I change the field length for product description?

You'll have to change that in the database, using phpMyAdmin. It's in the products_description table and is currently set to 64 characters. That field may appear in other tables too, including orders_products

8 Nov 2014, 2:12 PM
#5
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Re: How can I change the field length for product description?

That figures, that's when it goes over my head. I'm no programmer and don't feel comfortable messing with that sort of thing. I guess I had better find different ways of wording my Product Names.

Thanks.

8 Nov 2014, 2:38 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How can I change the field length for product description?

Be aware, if you change the size of the products_name in the table products_description, you also need to change the size of the products_name in the table orders_products ...

8 Nov 2014, 3:15 PM
#7
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Re: How can I change the field length for product description?

Don't worry Linda, I won't be changing anything. I am somewhat comfortable messing with HTML, but anything else is just not worth the big mess I could make of things. I'll just re word things to shrink them.

8 Nov 2014, 3:42 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: How can I change the field length for product description?

Or, someone could be really nice and tell you to go to your Zen Cart Admin to the Tools ... Install SQL Patches ... and run this in there:

ALTER TABLE products_description CHANGE products_name products_name VARCHAR(96) NOT NULL DEFAULT '';
ALTER TABLE orders_products CHANGE products_name products_name VARCHAR(96) NOT NULL DEFAULT '';

and it will change the two database tables to have products_name with a field length of 96 ...

8 Nov 2014, 4:19 PM
#9
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Re: How can I change the field length for product description?

You mean someone really nice like you? You have always been nice to me and very helpful. But before I dive into the abyss, do I just insert that code into the **SQL Query Executor **and click send?

8 Nov 2014, 4:47 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: How can I change the field length for product description?

Just go to the Tools ... Install SQL Patches ... and in the large input box (SQL Query Executor) paste that in and click the SEND button ...

9 Nov 2014, 3:30 PM
#11
1speedbump avatar

1speedbump

New Zenner

Join Date:
Jun 2012
Location:
Riverview, Fl.
Posts:
60
Plugin Contributions:
0

Re: How can I change the field length for product description?

Thank you both. I copied the code, pasted it in the box, clicked send; watched a green bar appear at the top which I always thought was a good thing; went to the products that had a few jumbled words, added a space where it needed to be and all is good. I didn't even blow up my cart in the process.

Thanks again for all the help...

9 Nov 2014, 3:54 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: How can I change the field length for product description?

Thanks for the update that this was able to work for you ...