Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Help Shorten and/or Truncate the Products Model Length

    Does anyone know how I could shorten the number of characters allowed in the 'Products Model' code field?

    [SCR]http://www.limelites.co.uk/screenPL.jpg[/SCR]

    When I sometimes write too much in this field, it pushes onto a new line. It'd be ideal if I could reduce the allowed characters so this never happens again.

    Also, if I change PHP code to force a shorter length, what would happen to the existing 'Products Model' Codes? Would they just truncate??
    Last edited by Kim; 21 Sep 2009 at 05:15 PM.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help Shorten and/or Truncate the Products Model Length

    Just as a starter, you can set the size of a field in the database using phpMyAdmin. The existing field is probably something like varchar 64 or varchar 32.

  3. #3
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Help Shorten and/or Truncate the Products Model Length

    Hi Glen,

    I don't know the first thing about using phpMyAdmin. I've heard of it, but never used it before. I don't like tampering with my database in any way.

    I wondered if there was maybe a PHP file that specified the character length?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help Shorten and/or Truncate the Products Model Length

    I know how you feel. Messing with the db can be scary, but I don't know of a PHP file that affects the products_model field length. There could be one, but the usual advice given for things like this is to change it in the db.

  5. #5
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Help Shorten and/or Truncate the Products Model Length

    If I'd need to screw about with the DB then I think I'll just forget it and I'll just consciously make the effort to keep the Product Model short

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

    Default Re: Help Shorten and/or Truncate the Products Model Length

    phpMyAdmin is just another tool, and not that difficult to figure out. I would set up another Zenacrt installation, probably in a subdirectory, with its own database, and try changing the length in that first. You'll find it's really easy.

  7. #7
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Help Shorten and/or Truncate the Products Model Length

    Why not just remove/prevent it from showing on the product listing?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Increase the length of the product model field
    By new2u in forum General Questions
    Replies: 5
    Last Post: 13 May 2011, 04:04 PM
  2. Shorten length of product description on featured products
    By zinger in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Oct 2010, 04:13 PM
  3. How to extend Product Model Field length in the ADMIN?
    By Asdesign in forum General Questions
    Replies: 8
    Last Post: 16 Sep 2010, 02:16 PM
  4. Replies: 3
    Last Post: 16 Jun 2010, 06:08 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