PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
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 / modules / elementor / architecture.md

architecture.md in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/elementor/architecture.md

18 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ---
2 module: elementor
3 ---
4
5 # elementor
6
7 ## Responsibility
8
9 Registers CartFlows' four Elementor widgets (`checkout-form`, `order-details-form`, `next-step-button`, `optin-form`) plus their category, control panels and CSS, and translates Elementor control values into CartFlows step settings — by runtime filters during render, and by writing step post meta on editor save.
10
11 Ownership stops at the shortcode boundary: every widget's `render()` emits `do_shortcode( '[cartflows_*]' )`. The actual checkout/optin/thank-you markup, WooCommerce templates and step logic live in the step modules.
12
13 ## Why it is this way
14
15 The load path is the thing no reader can infer from the file layout: editor compatibility, the WooCommerce template override, and the thank-you demo-data filter all ship as a side effect of a `require_once` buried inside widget registration, which is itself gated on `global $post` being a CartFlows step.
16
17 Settings reach the shortcode through filters registered at render time rather than through arguments, because the shortcodes read step meta rather than accepting parameters. That indirection is what makes the static `$settings` aliasing and the never-removed filters possible.
18