Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Posts
    142
    Plugin Contributions
    0

    Default Replacing "model" with "part number"

    Can someone please tell me which file I need to edit in order to replace the text heading "model" with the heading "part number"?

    I went to developers tools and searched for the word 'model' in all files. I then manually edited every file and replaced "model" with "part number" but I obviously did something wrong because my Zencart pages went blank. So now I have re-uploaded all Zencart files again.
    I don't want to make the same mistake again.

    Do I only edit a particular file or all of them?
    Also, should I put "part_number" as opposed to "part number"?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Replacing "model" with "part number"

    ALL EDITING SHOULD BE DONE ON A LOCAL DRIVE, USING A PLAIN TEXT EDITOR

    These are in various DEFINE statements, and they will ALL be in the language php files.

    There are about 17 files that are relevant here - I can't recall all of them, but they are all in the languages folder.

    The way to see where the references are is to use:

    admin >>> tools >>> developer toolkit, and then to put the word model into the field used to find references in the languages files.

    This will return a table, showing the FILE NAME, and the line location of the search term.

    REMEMBER, you change ONLY define statements... NOT code or UPPER_CASE_CONSTANTS.

    PHP Code:
    define('TEXT_PRODUCT_MODEL''Model: '); 
    becomes

    PHP Code:
    define('TEXT_PRODUCT_MODEL''Part Number: '); 
    ALSO IMPORTANT.
    You do not edit the CORE language file, but a COPY of it, which should then be saved into your template (over-ride) folder.

    EG:

    /includes/languages/english/product_info.php

    The copy goes to
    /includes/languages/english/my_template/product_info.php

    (where my_template is whatever name of the template you are using.)
    Last edited by schoolboy; 26 May 2010 at 09:51 PM.
    20 years a Zencart User

  3. #3
    Join Date
    May 2010
    Posts
    142
    Plugin Contributions
    0

    Default Re: Replacing "model" with "part number"

    Quote Originally Posted by schoolboy View Post
    These are in various DEFINE statements, and they will ALL be in the language php files.

    There are about 17 files that are relevant here - I can't recall all of them, but they are all in the languages folder.

    The way to see where the references are is to use:

    admin >>> tools >>> developer toolkit, and then to put the word model into the field used to find references in the languages files.

    This will return a table, showing the FILE NAME, and the line location of the search term.

    REMEMBER, you change ONLY define statements... NOT code or UPPER_CASE_CONSTANTS.

    PHP Code:
    define('TEXT_PRODUCT_MODEL''Model: '); 
    becomes

    PHP Code:
    define('TEXT_PRODUCT_MODEL''Part Number: '); 
    Ahhh now that explains what went wrong!
    I edited all 17 files, but I also changed the code or UPPER_CASE_CONSTRAINTS.
    No wonder all the pages went blank!

    Thank you so much for pointing me in the right direction.

    Btw, you will be pleased to know that with this particular site I am going to be a good girl and I am not gonna be integrating Zencart into a html site Its gonna be a Zencart site from front to end.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 29 Aug 2013, 02:00 PM
  2. Replies: 3
    Last Post: 15 Feb 2013, 03:17 PM
  3. Replacing "Filter Results by ABC" with "Sort by: Price, Date added"
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Aug 2010, 09:18 AM
  4. Replace "model" with "id" on confirmation email
    By mkopecky in forum General Questions
    Replies: 2
    Last Post: 17 Oct 2008, 10:07 PM
  5. Replies: 3
    Last Post: 3 Jun 2008, 11:41 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