Extra Folders

extra_datafiles, extra_definitions, extra_functions and extra_configures

Files in these folders are autoloaded:

includes/extra_datafiles/
includes/languages/english/extra_definitions/
includes/functions/extra_functions/
includes/extra_configures/
admin/includes/extra_datafiles/
admin/includes/languages/english/extra_definitions/
admin/includes/functions/extra_functions/
admin/includes/extra_configures/

Note that the folder /extras at the root of Zen Cart is a set of utilities, not autoloads.

Autoloads are designed to make upgrades easier since using them means fewer core file edits.

The usage of these folders is as follows:

  • includes/extra_datafiles: definitions of table names and PHP files which have been added. Using this folder means not having to update the core files includes/database_tables.php and includes/filenames.php.

  • includes/languages/english/extra_definitions: language constants which have been added. Using this folder means not having to update the core files includes/languages/english.php.

  • includes/functions/extra_functions - global functions which have been added. Using this folder means not having to update includes/init_includes/init_general_funcs.php.

  • includes/extra_configures - global configuration settings which have been added. Using this folder means not having to modify includes/configure.php.

The admin folders use the same pattern.




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified June 28, 2021 by Scott C Wilson (94648c3).