public:cs-cart
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:cs-cart [2014/02/17 04:53] – [Template Override] squires | public:cs-cart [2014/03/03 05:34] (current) – squires | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| This information is for version 4.1.2. | This information is for version 4.1.2. | ||
| + | |||
| + | Themes repository. Originals are kept here. (I think.) When an addon is installed, its template files are copied from the repository area into the design area. When it is uninstalled, | ||
| + | |||
| + | * var | ||
| + | * themes_reopository | ||
| + | * basic | ||
| + | |||
| + | Design directory. These are the templates that are actually used. | ||
| + | |||
| + | * design | ||
| + | * themes | ||
| + | * basic | ||
| + | |||
| + | ===== Execution Path ===== | ||
| + | |||
| + | index | ||
| + | init | ||
| + | config setup | ||
| + | |||
| + | fn_dispatch (fn.control.php) | ||
| + | * determines all controllers that need to run, including addons and pre- and post-hooks | ||
| + | * calls fn_run_controller() for each | ||
| + | * calls $view-> | ||
| + | * since all the controllers have run at this time, all smarty variable assignments should be ready | ||
| + | |||
| + | ==== Form Submission ==== | ||
| + | |||
| + | Javascript event ce.formpost_[form_name] is triggered after validation and before form is posted. Returning false will cancel the submission. | ||
| ===== User Interface ===== | ===== User Interface ===== | ||
| Line 20: | Line 48: | ||
| The hooks are generally only found where the developers needed to put them to develop their built-in addons. More often, you'll find you need to replace an entire template. You won't easily discover this method by looking at the built-in addons, because the developers have added hooks so that they don't need to override template files. | The hooks are generally only found where the developers needed to put them to develop their built-in addons. More often, you'll find you need to replace an entire template. You won't easily discover this method by looking at the built-in addons, because the developers have added hooks so that they don't need to override template files. | ||
| + | |||
| + | ==== Template Engine ==== | ||
| + | |||
| + | ' | ||
| + | |||
| + | ==== Template Javascript ==== | ||
| + | |||
| + | For templates that are added to the page via ajax calls, embedded scripts are not executed. However, a ' | ||
| + | |||
| + | < | ||
| + | $.ceEvent(' | ||
| + | // code here | ||
| + | }); | ||
| + | </ | ||
| ===== Code / Addons ===== | ===== Code / Addons ===== | ||
| Line 146: | Line 188: | ||
| fn_format_price() | fn_format_price() | ||
| + | ===== Resources ===== | ||
| + | http:// | ||
| + | http:// | ||
public/cs-cart.1392612809.txt.gz · Last modified: 2014/02/17 04:53 by squires