Post by Qphoria » Wed Dec 24, 2008 12:31 am

This is a question that can create a lot of confusion.

First it is important that you understand the OpenCart framework. Once you understand the basics on how it is laid out, the naming schemes and structure make much more sense.
Starting from the root directory there is:

Admin Files
/admin - the main admin folder. All things admin are under here
/admin/controller - the location of all the admin controller files
/admin/extension - the location of extensions. These include modules like header, footer, menus, etc
/admin/javascript - the location of the javascript files for ajax, lightbox, wysiwyg editors, and more on the admin side
/admin/langauge - the location of all things language based
/admin/language/english/controller - the location of the languages that match the corresponding controller files
/admin/language/english/extension - the location of the languages that match the corresponding extension files
/admin/language/english/model - not used in this version of OpenCart. It is a placeholder for future framework functionality
/admin/template/default/content - the location of the view/template files that match the corresponding controller files
/admin/template/default/module - the location of the view/template files that match the corresponding extension module files
/admin/template/default/css - the location of the css files used for styling pages
/admin/template/default/css - the location of the image files used for styling pages


Catalog Files
/catalog - the main frontend folder. All things on the front end are under here
/catalog/controller - the location of all the catalog controller files
/catalog/extension - the location of extensions.
/catalog/extension/calculate - the location of the code for calculating the totals during checkout
/catalog/extension/module - the location of the module code for things like header, footer, sideboxes, and language/currency selectors
/catalog/extension/payment - the location of the payment module code for all available payment options.
/catalog/extension/shipping - the location of the shipping module code for all available payment options.
/catalog/javascript - the location of the javascript files for ajax, lightbox, wysiwyg editors, and more on the catalog side
/catalog/langauge - the location of all things language based
/catalog/language/english/controller - the location of the languages that match the corresponding controller files
/catalog/language/english/extension - the location of the languages that match the corresponding extension files
/catalog/language/english/model - not used in this version of OpenCart. It is a placeholder for future framework functionality
/catalog/template/default/content - the location of the view/template files that match the corresponding controller files
/catalog/template/default/module - the location of the view/template files that match the corresponding extension module files
/catalog/template/default/css - the location of the css files used for styling pages
/catalog/template/default/css - the location of the image files used for styling pages


Common Files
/library - common functions and setup for all areas of the store
/library/application - these are the common core funciton files used to structure how the base application works
/library/cache - The handles the way the database caching is done
/library/cart - this is where most of the meat and potatoes is for the cart, products, checkout, customers etc.
/library/database - this is the database layer used by all controller & extension files to interface with the db
/library/environment - this handles the request/response for GET/POST variables, url structuring and other HTTP handling
/library/filesystem - handles all the functions for uploads, downloads, and file system interfacing
/library/image - handles the resizing, adding, and deleting of image files in the system
/library/language - handles the way opencart finds & loads the language files matching the current language setting.
/library/mail - handles all the email sending for newsletters and new orders
/library/session - handles the session variables, setting, getting, and deleting
/library/template - structures the template layout, gets the correct files based on the chosen template
/library/user - handles the customer/user logins & permission checks
/library/validate - handles the validation checks for required fields, and field lengths.
/library/locator.php - handles the initial creation of all the classes used throughout opencart.

/cache - the cache files are created on the fly to store serialized data from the database, to prevent excessive dbqueries

/download - when you add new files to your store for purchase/download, they are stored here

/image - product images are stored here
/image/cache - dynamically auto-generated thumbnails for your product images are stored here

/install - this is where the main installer/upgrade scripts are

/config.php - the config file for your site
/index.php - the main index page
/rss.php - used to allow rss feed subscription to your store.
Last edited by Qphoria on Wed Dec 24, 2008 12:34 am, edited 1 time in total.

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 2 guests