Auto Inclusion System
To reduce the number of changes required for plugin authors, Zen Cart does some automatic inclusion of files.
*.php files placed in
includes/functions/extra_functions are loaded automatically, and can be called by any storefront side logic. Similarly, on the admin side, functions in
admin/includes/functions/extra_functions are automatically loaded.
- A storefront side page will automatically load its own language file. So the page
- All files in
includes/languages/english/extra_definitionsare automatically loaded.
Extra Datafiles, Extra Configures, Extra Cart Actions
*.php files in this folder are loaded automatically.
See Extra folders for a complete list.
Auto Loaded Observers
These are described in the Notifiers and Observers documentation. Auto-loaded Observer files include those in
includes/classes/observers (and Admin) whose name begins with
auto and which define a class named zcObserver + the CamelCased filename.
A number of stylesheets are automatically loaded; this process is described in the stylesheet documentation.