Forums / General Questions / product Name - Can only put so much in the field

product Name - Can only put so much in the field

Locked

Views: 2,014

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
12 Sep 2008, 4:01 PM
#1
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

product Name - Can only put so much in the field

Ok, my site is ready to rock and roll, but I need to do one more thing to finish it off... Ands thats to ba able to put more charactors in the Product Name field.

Some of my products have quite long names but I can fit them in the field. Does anyone know how I can change it so I can put more in the box?

I did some searching through a ton of PHP files but cant seem to find any answers, nor in admin either :(

Cheers

DB

12 Sep 2008, 4:17 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: product Name - Can only put so much in the field

You need to access your database with phpMyAdmin (should be in your hosting control panel) and choose the products_description table and change the **products_name **field to a larger number of characters.

12 Sep 2008, 4:23 PM
#3
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: product Name - Can only put so much in the field

The mysql database field for the product name is limited to 64 characters.... changing this is an advanced topic...

Steve

12 Sep 2008, 4:41 PM
#4
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Re: product Name - Can only put so much in the field

Cheers guys.

I knew it was something simple like that. Never even thought of looking there!

Thanks again :)

DB

12 Sep 2008, 4:51 PM
#5
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Re: product Name - Can only put so much in the field

I tried changing the fiels lenght, but as said by steve its an advanced topic. The field now reads 150, but in Zen admin it still only lets me use 64.

Steve, any chance of a quick crach course... Dont worry, im not a newbie so should be able to understand anything you throw at me ;)

Cheers,

DB

12 Sep 2008, 5:00 PM
#6
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Re: product Name - Can only put so much in the field

UPDATE:

I tried changing the field lenght in the wrong database LOL

Got it sorted now tho, cheers guys.

12 Sep 2008, 5:07 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: product Name - Can only put so much in the field

Ok. You're going to phpMyAdmin and selecting the proper database from the list on the left.

From the new list on the left (list of tables) you'll click on products_description.

You'll be presented with a list of 7 fields, one of which is products_name. The type is varchar64.

In the product_name row, click on the pencil on the right (Change on the mouseover).

In the Length/Values box, change 64 to whatever you want (actually, 128 should be plenty).

Click on Save (all the way over on the right). The type should now say varchar128, and you're good to go.

You may have to log out and log back in to Admin.

Edit: Well, if anybody else needs instructions, ...

Should work.

If you have any mods installed that deal with product names, all bets may be off.

Edit: Well if anybody else needs instructions, ...

12 Sep 2008, 5:10 PM
#8
dropbop avatar

dropbop

Zen Follower

Join Date:
Apr 2008
Location:
Athlone, Ireland
Posts:
177
Plugin Contributions:
1

Re: product Name - Can only put so much in the field

cheers stevesh,

I actually got it before you replyed, but maybe your post might be able to help others with the same issue :)

Thanks again, much appreciated.

DB

13 Sep 2008, 6:46 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: product Name - Can only put so much in the field

NOTE: when changing field size, be sure you change any and all related field sizes on related tables ...

Example:
products_description has the field products_name ...
orders_products has the field products_name ...

NOTE: field names between tables, for the most part do match, however others could be similar field names and you will want to observe your tables and field names carefully ...

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!

15 Oct 2008, 3:38 PM
#10
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: product Name - Can only put so much in the field

Thanks everyone!