Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Location
    St. Somewhere, Fl
    Posts
    26
    Plugin Contributions
    0

    help question How to Recognize New Database Fields

    I have been customizing ZenCart for a number of days, all is going well, especially due to the help from the tutorials and forum.

    I am creating a store for ginger plants. Everywhere the site mentions Manufacturer I want it to have Grower, everywhere it mentions Model, I want it to say Type.

    I created tables on my database, exactly like both Manufacturer tables and called them Grower, all having the same fields. I then went to all the files like manufacturers.php and changed the words and saved as grower.php.

    Everywhere I saw a manufacturer document or text I "saved as" or I added grower info in lines, similar to the manufacture lines.

    How do I get Grower to show up on my product pages where it now has manufacture? Also how does my admin section recognize and list the new sideboxes, and under admin/product listing show "Display Product Grower Name"

    my future store http://www.gingerlandtropicals.com/ZenCart/
    Thanking you in advance..
    The Herb Garden
    Putting "Spice" in your life since 1989

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How to Recognize New Database Fields

    Might be easire to edit the english.php file and make this:
    Code:
    // manufacturers box text in sideboxes/manufacturers.php
      define('BOX_HEADING_MANUFACTURERS', 'Manufacturers');
    Look Like this:
    Code:
    // manufacturers box text in sideboxes/manufacturers.php
      define('BOX_HEADING_MANUFACTURERS', 'Grower');
    And the same for the others

    To do all that you are seeking will require editing many files in the catalog and admin sides for the DB calls and lookups that you probably have not done yet and in the end you wind up at the same place as if you do as I suggested

  3. #3
    Join Date
    Feb 2007
    Location
    St. Somewhere, Fl
    Posts
    26
    Plugin Contributions
    0

    Default Re: How to Recognize New Database Fields

    Thanks. You know I tried that on my first install and still when I went into a product page it still showed the name manufacturer, so I guess I missed something. I kept changing the words until finally I got the error message the TABLE_MANUFACTURERS cannot be found.

    I definitely understand the process of what you are talking about and will give it another shot, one step at a time until it either changes or something goes wrong.

    Thanks for your input. Let me ask this. When I start changing those words in the admin folders and others outside of files that can be saved into "custom" folders, I assume I loose all those changes on an upgrade unless I backup the changed folders and replace them after an upgrade. Is this correct?

    Thanks Again
    The Herb Garden
    Putting "Spice" in your life since 1989

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How to Recognize New Database Fields

    Thanks for your input. Let me ask this. When I start changing those words in the admin folders and others outside of files that can be saved into "custom" folders,
    This should only be edits to english.php if done as I outlined - no admin edits should be required.

 

 

Similar Threads

  1. Replies: 11
    Last Post: 19 Jan 2016, 03:38 PM
  2. v151 install doesn't recognize database
    By landron in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 18 Jan 2013, 10:30 PM
  3. Doesnt recognize database or missing something?
    By stefanl in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 15 Jun 2010, 10:30 PM
  4. Replies: 12
    Last Post: 21 Nov 2009, 06:54 PM
  5. How do I get Define Pages to recognize a new page for the Information Box?
    By ScootaMan in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 11 Nov 2007, 02:26 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