Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Plugin Contributions
    0

    help question Edit text "Company Details:" on registration

    I am new to Zen cart but am very impressed with what I see so far. I am tweaking a site that I did not build so I am a little miffed as where to look.

    I would like to change "Company Details" and "Company Name:" on the registration page and all resulting pages to say "School Details" and "School Name:".
    I looked through the language file admin/includes/languages/english.php and found:
    on line 221 define ('CATEGORY_COMPANY', 'Company'); and changed it to define('CATEGORY_COMPANY', 'School');

    on line 236 define('ENTRY_COMPANY', 'Company name:'); and changed that to define('ENTRY_COMPANY', 'School name:');

    but this didn't seem to work.

    Is there a place where "Company Details" and "Company Name" is declared as a variable so I could change them site wide? Does this have to be compiled similar to xcart for changes to show up after editing?

    I am using version zen cart 1.3.7
    Last edited by stewvan; 14 Apr 2008 at 06:53 AM. Reason: typos

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Edit text "Company Details:" on registration

    You can find a huge number of defines and variables in the core code by using the Developer Tool Kit feature in ADMIN...TOOLS.

    Generally, text phrases, descriptions and labels are part of a DEFINE statement.

    For example, in INCLUDES\LANGUAGES\english.php you will find the following:-

    PHP Code:
     define('CATEGORY_COMPANY''Company Details');
      
    define('CATEGORY_PERSONAL''Your Personal Details');
      
    define('CATEGORY_ADDRESS''Your Address');
      
    define('CATEGORY_CONTACT''Your Contact Information');
      
    define('CATEGORY_OPTIONS''Options');
      
    define('CATEGORY_PASSWORD''Your Password');
      
    define('CATEGORY_LOGIN''Login');
      
    define('PULL_DOWN_DEFAULT''Please Choose Your Country');
      
    define('PLEASE_SELECT''Please select ...');
      
    define('TYPE_BELOW''Type a choice below ...'); 
    You edit the piece between the second set of single quotes:-
    define('CATEGORY_COMPANY', 'Company Details');
    define('CATEGORY_COMPANY', 'Business Info');


    After you edit the file, it should be saved in your CUSTOM TEMPLATE folder:-

    INCLUDES\LANGUAGES\YOUR_TEMPLATE\english.php

 

 

Similar Threads

  1. v150 How do I edit Product Listing "Price", "Qty." and Product Info Move "details"?
    By schobook in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Jan 2013, 01:02 AM
  2. Replies: 2
    Last Post: 15 Aug 2011, 08:57 PM
  3. Make "Company Details" section optional in the login screen?
    By Cindy2010 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Sep 2010, 12:45 PM
  4. Removing "Additional Contact Details" on registration page
    By Clever Trevor in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Apr 2009, 12:30 PM
  5. Replies: 2
    Last Post: 15 Jan 2007, 08:04 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR