Forums / General Questions / Is it okay to modify/add files in includes\modules\pages ?

Is it okay to modify/add files in includes\modules\pages ?

Locked
Results 1 to 8 of 8
This thread is locked. New replies are disabled.
09 Nov 2008, 18:57
#1
seifer987 avatar

seifer987

New Zenner

Join Date:
Nov 2008
Posts:
27
Plugin Contributions:
0

Is it okay to modify/add files in includes\modules\pages ?

Look the title.
09 Nov 2008, 19:03
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

Re: Is it okay to modify/add files in includes\modules\pages ?

You can, but there aren't any overrides for those files, so you'll have to re-modify or re-add them when you upgrade to a new Zencart version.
09 Nov 2008, 19:12
#3
seifer987 avatar

seifer987

New Zenner

Join Date:
Nov 2008
Posts:
27
Plugin Contributions:
0

Re: Is it okay to modify/add files in includes\modules\pages ?

You can, but there aren't any overrides for those files, so you'll have to re-modify or re-add them when you upgrade to a new Zencart version.

So what's the solution if I want to add a new page?
09 Nov 2008, 20:24
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Is it okay to modify/add files in includes\modules\pages ?

seifer987:

So what's the solution if I want to add a new page?

Keep backup copies of pages you are going to alter...
then keep notes on exactly what you have altered..then
when ZenCart 1.4 and future releases are available,
you won't be panicking about what you did 2 or 3 or 6 months
ago, 'cos your site doesn't work when upgrading..
:smile:
10 Nov 2008, 01:26
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Is it okay to modify/add files in includes\modules\pages ?

If you ADD a new page, then you do not really modify and core files, you simply add new files, which is NOT a problem.
10 Nov 2008, 04:56
#6
seifer987 avatar

seifer987

New Zenner

Join Date:
Nov 2008
Posts:
27
Plugin Contributions:
0

Re: Is it okay to modify/add files in includes\modules\pages ?

Thanks guys.

Actually I just want to add a page.
Yeah, I think it's better if we can overriede the modules\pages.
For example the override folder might be like this:
includes\modules\pages\CUSTOM
or
includes\modules\CUSTOM\pages
10 Nov 2008, 05:09
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Is it okay to modify/add files in includes\modules\pages ?

Unless you see a classic folder, there is no override available.

You can create an "override" folder even if it won't be used and store your changes in it so you can refer to them after an upgrade/update which overwrote the files you modified.
10 Nov 2008, 08:18
#8
kobra avatar

kobra

Black Belt

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

Re: Is it okay to modify/add files in includes\modules\pages ?

misty:

You can create an "override" folder even if it won't be used and store your changes in it so you can refer to them after an upgrade/update which overwrote the files you modified.

Or you can add a atandard text string as a comment to all files you edit. You can then use the developers tool kit to locate all files with that text string as in before you upgrade and you will have a list of files you have added or edited that could not be overridden