PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / trunk
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce vtrunk
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / wizard / architecture.md

architecture.md in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce trunk, at wizard/architecture.md

18 lines 984 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ---
2 module: wizard
3 ---
4
5 # wizard
6
7 ## Responsibility
8
9 Owns the CartFlows first-run setup wizard: the standalone `index.php?page=cartflow-setup` admin screen (its own full HTML document, React SPA, and asset enqueue), the six-step flow, and the eight `wp_ajax_cartflows_*` handlers backing it.
10
11 Ownership stops at the data it writes — flow/step import mechanics, settings shape, and the template-preview iframe's own message handling all live outside this module.
12
13 ## Why it is this way
14
15 The wizard is not a normal admin page. It renders its own `<html>` document, fires `admin_print_styles` and `admin_head` manually, and ends in `exit`, so nothing that assumes the standard admin lifecycle applies inside it.
16
17 The jQuery↔React boundary is entirely string-based: buttons carry CSS classes that a delegated jQuery handler binds, and the two halves communicate through custom DOM events with no registry. Rename a class or an event name and nothing errors — the wizard just stops.
18