Forums / General Questions / how to construct a web site with a lot of secondary developments?

how to construct a web site with a lot of secondary developments?

Started by linjuming on 5 Feb 2013, 2:01 AM · Views: 1,225

Results 1 to 5 of 5
5 Feb 2013, 2:01 AM
#1
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

how to construct a web site with a lot of secondary developments?

I am new to my company now, my company site has been created based on 1.3.8a, and there are lot of zencart core files changed , and a lot of new secondary developed files added . now my boss want to update the company site to zencart 1.5.1, and want to construct the site starting from scratch, the new verson of company site should be clear in structure and easy to update.

can any good people give some suggestions ? and any good theads telling about that ?

some thoughts of mine:
1.if new classes files added ,should be placed in includes/classes/jy_class.xxx.php (jy is my company name);
2.if new includes/modules/pages/xxx/header_php.php ,should be placed in includes/modules/jy/pages/xxx/header_php.php
3.if new functions ,should be placed in includes/functions/extra_functions/jy_functions_xxx.php

5 Feb 2013, 2:57 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how to construct a web site with a lot of secondary developments?

1 and 3, yes. 2, no, because /includes/modules/pages/ files are not overrideable - there is no processing structure to use a "template" copy of these. At least some of the filenames are also fixed, so you probably cannot prefix them with your company tag. You can and should note your name, date and relevant comments in the file contents, though.

5 Feb 2013, 3:15 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how to construct a web site with a lot of secondary developments?

There are some other override folders as well, for deeper structures, two at least named simply /overrides/:
/includes/autoloaders/overrides/
/includes/init_includes/overrides/

The wiki should have some articles about using these and others.

5 Feb 2013, 3:31 AM
#4
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

Re: how to construct a web site with a lot of secondary developments?

good advices,thank gjh42

5 Feb 2013, 3:57 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: how to construct a web site with a lot of secondary developments?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.