Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Change Model Number to Product Ref

Change Model Number to Product Ref

Locked

Views: 1,593

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Mar 2008, 5:41 PM
#1
flobster avatar

flobster

New Zenner

Join Date:
Sep 2006
Posts:
76
Plugin Contributions:
1

Change Model Number to Product Ref

Hello

Is it possible to change the wording of Model Number to Product Ref,

It would be pretty easy to change it in the product/order pages just by editing the text in the php files, but would i need to change anything else,
or is there one file which will change it for the whole of the site?

Thanks
Rob

11 Mar 2008, 6:20 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change Model Number to Product Ref

Learn to use the grep tool > developers tool kit in the admin tools area and search for the text and seek a defines for it

11 Mar 2008, 7:08 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Change Model Number to Product Ref

Kobra makes an important point. The developers tool kit is a vital and important part of finding elements within the core code files when you are looking for stuff to customise.

You really should make a point of learning how to use it...

The changes need to be made to a number of php files - all of which are in the LANGUAGES folder(s). (I recall having to change about 12 php files).

One of these files is " english.php ", the original of which is in :-
includes/languages/template_default

FTP a copy to your hard drive.

Open it for editing, using a good TEXT editor such as Crimson editor (NOT notepad!)

you will be looking for DEFINES, such as:-

  define('TEXT_INFO_SORT_BY_PRODUCTS_MODEL', 'Model');

You will change to:-

  define('TEXT_INFO_SORT_BY_PRODUCTS_MODEL', 'Product Ref');

(There may be other DEFINES in this file that need editing).

You will SAVE the file...

You will FTP the edited copy to your OVER-RIDES directory, eg: includes/languages/YOUR_TEMPLATE.

Using the developers tool kit (ADMIN>>>TOOLS>>>DEVELOPERS TOOL KIT) you can seek out other instances of the word "model" and then look for results which show this as part of a DEFINE statement. These are likely to be files that you must edit (then return to their respective OVER-RIDE directories, in the same manner as the example above.

11 Mar 2008, 10:01 PM
#4
flobster avatar

flobster

New Zenner

Join Date:
Sep 2006
Posts:
76
Plugin Contributions:
1

Re: Change Model Number to Product Ref

I do use the developer tool kit often to search for files and text within files, i just wanted to ask for advice before going ahead and changing the files,

Thank you for your help i will edit the files and see how i get on tomorrow.

Rob

19 Apr 2009, 5:41 PM
#5
george_susini avatar

george_susini

New Zenner

Join Date:
Mar 2009
Location:
Raleigh, NC
Posts:
31
Plugin Contributions:
0

Re: Change Model Number to Product Ref

:clap: Thank you for the detail and tip on the developers tool kit, what a real time saver !!