Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2006
    Posts
    116
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Feb 2006
    Posts
    116
    Plugin Contributions
    0

    Default Re: Expanding the product name field

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

  3. #3
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Feb 2006
    Posts
    116
    Plugin Contributions
    0

    Default Re: Expanding the product name field

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

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

  6. #6
    Join Date
    Feb 2006
    Posts
    116
    Plugin Contributions
    0

    Default 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. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

  8. #8
    Join Date
    Mar 2011
    Location
    Marco Island, FL
    Posts
    71
    Plugin Contributions
    0

    Default Re: Expanding the product name field

    Quote Originally Posted by stevesh View Post
    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.
    Attached Images Attached Images  

  9. #9
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Expanding the product name field

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

  10. #10
    Join Date
    Nov 2010
    Posts
    44
    Plugin Contributions
    0

    Default 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)

 

 

Similar Threads

  1. Expanding the length of product attribute display?
    By justwonder2 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Jan 2013, 11:40 PM
  2. v150 Making the name field not mandatory on the contact page
    By Tuner in forum Basic Configuration
    Replies: 1
    Last Post: 5 Dec 2012, 08:44 PM
  3. How to give more space to the field of "product name' and left aligh
    By rich00693 in forum Setting Up Categories, Products, Attributes
    Replies: 17
    Last Post: 18 Apr 2009, 12:56 AM
  4. Expanding The Model Field
    By spiralmedia in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Dec 2008, 05:48 PM
  5. product Name - Can only put so much in the field
    By dropbop in forum General Questions
    Replies: 9
    Last Post: 15 Oct 2008, 04:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg