Forums / Templates, Stylesheets, Page Layout / Edit text "Company Details:" on registration

Edit text "Company Details:" on registration

Locked

Views: 1,706

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
14 Apr 2008, 5:52 AM
#1
stewvan avatar

stewvan

New Zenner

Join Date:
Apr 2008
Posts:
1
Plugin Contributions:
0

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

14 Apr 2008, 7:30 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

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

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:-

 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