Forums / Setting Up Categories, Products, Attributes / Replacing "model" with "part number"

Replacing "model" with "part number"

Locked

Started by enigma666666 on 26 May 2010, 8:40 PM · Views: 943

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
26 May 2010, 8:40 PM
#1
enigma666666 avatar

enigma666666

Zen Follower

Join Date:
May 2010
Posts:
142
Plugin Contributions:
0

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"?

26 May 2010, 8:47 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

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

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.

define('TEXT_PRODUCT_MODEL', 'Model: ');

becomes

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.)

20 years a Zencart User

26 May 2010, 8:52 PM
#3
enigma666666 avatar

enigma666666

Zen Follower

Join Date:
May 2010
Posts:
142
Plugin Contributions:
0

Re: Replacing "model" with "part number"

schoolboy:

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.

define('TEXT_PRODUCT_MODEL', 'Model: ');

> 
> becomes
> 
> ```php
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 :wink: Its gonna be a Zencart site from front to end.