Increase length of Manufacturer field in Zen Cart


The default field length for Manufacturer Name in Zen Cart is 64 characters.  In some cases this may not be enough and today we are going to step through increasing this field to support longer names.

Zen Cart Manufacturer Name

As this is not a setting in Zen Cart Admin, we will need to make the change directly in the relevant database tables.  In this example we will be using cPanel and phpMyAdmin.

  1. Log in to your cPanel Control Panel

    Your cPanel is located at either http://YourSitesIPAddress/cpanel (for example, http://1.2.3.4/cpanel), or http://www.yourdomainname.com/cpanel or http://cpanel.yourdomainname.com/.

    Your cPanel username and password will generally be found in a welcome email from your webhost.

    Scroll down to the section Databases and click on phpMyAdmin.
    cPanel > phpMyAdmin

  2. Select the Zen Cart database from the menu on the left hand side of phpMyAdmin.
    Zen Cart Database in phpMyAdmin

  3. The Zen Cart database tables will now be displayed in the left hand side menu.  The first table that we need to modify is manufacturers or, with the prefix, zen_manufacturers.  Select this table. 
    Zen Cart Manufacturers Database Table 

  4. Select the Structure tab and then click on the Change icon (pencil) corresponding with manufacturers_name.
    Edit manufacturers_name in Zen Cart

  5. In the Length/Values field, change the value from 32 to the number of characters required.  In this case we are changing the field to accept up to 64 characters.

    Click the Save button to save your change.
    Change maximum length of Manufacturers Name in Zen Cart 

  6. A success message is displayed.
    Change manufacturers_name length in Zen Cart database

And that’s it.  You will now be able to enter manufacturer names up to the new number of characters you specified in the database.

     
   
     

More Zen Cart:

  1. Increase length of Product Name field in Zen Cart
  2. Creating a MySQL Database in cPanel for Zen Cart Installation
  3. How to do a complete Backup of your Zen Cart Store
  4. Disable Downloads to increase Zen Cart performance
  5. Disable Attribute Images to increase Zen Cart performance
  1. #1 by nithya on 28 July, 2011 - 7:06 pm

    How to display categories and subcategories in one page in zencart?
    how to get categories and subcategories from database?plz help me.

(will not be published)

Notify me of followup comments via e-mail. You can also subscribe without commenting.