Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    13
    Plugin Contributions
    0

    Product Name length

    I tried a search and didn't find what I needed, I apologize if this has been covered before.

    On a very small selection of items on our store, the default amount of characters available for the Product Name when creating new products in the Admin is just a few too short.

    First off since I know this may be more involved I'm going to go ahead and ask a newbie-ish question: Which file is this located in?

    Now I also expect that this could be more complicated. Is there a limitation in the code on this as there is also a limitation on the database field? If so is there a safe way to go about adjusting it without potentially causing chaos and destruction?

    Thanks for any help. :)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Product Name length

    It's pretty safe to start by changing the length in the database. Be reasonable in the number you choose. The code will follow what you set...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Product Name length

    Ah, very simple and elegant. I moved it from 64 to 80 and I hope that we will never need more than that. It works perfectly, and I thank you for your very speedy advice.


  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Name length

    NOTE: Be sure you changed the length of the products_name in all tables ... or you will have some pretty short orders ...
    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!

  5. #5
    Join Date
    May 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Product Name length

    Thanks for pointing that out Linda!

    I dg through the tables just now in PHPMyAdmin, and the only place I saw products_name was in orders_products and products. Does that sound about right?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Name length

    products table does not have a products_description field ...
    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!

 

 

Similar Threads

  1. Product name length
    By Glock1 in forum General Questions
    Replies: 5
    Last Post: 3 Nov 2011, 04:13 PM
  2. Product name length
    By Laplandia in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 3 Nov 2011, 04:04 PM
  3. Product Name Length
    By Dashizna in forum General Questions
    Replies: 12
    Last Post: 24 Jul 2008, 04:59 PM
  4. Product Name Length
    By Shari in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 28 Jun 2007, 06:38 AM

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