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 / woocommerce / architecture.md

architecture.md in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at woocommerce/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: woocommerce
3 ---
4
5 # woocommerce
6
7 ## Responsibility
8
9 Drop-in replacements for 17 WooCommerce core templates across `checkout/`, `order/`, `cart/`, `global/` and `notices/`, swapped in by `Cartflows_Frontend::override_woo_template()` on the `woocommerce_locate_template` filter.
10
11 Ownership is markup and hook placement only — no business logic, no data mutation. The CartFlows-specific hooks these files emit are consumed entirely in `modules/checkout/`, and the override is scoped to `cartflows_step` pages, so My Account and standard Woo pages never see them.
12
13 ## Why it is this way
14
15 The files *look* like inert copies of WooCommerce core, and that is the trap. Three behavioural divergences from core are invisible unless you diff against upstream: AJAX-gated `woocommerce_review_order_*_payment`, layout-gated `woocommerce_thankyou_{gateway}`, and a layout-gated success message. Each is a live support-ticket generator.
16
17 The override mechanic itself is the other thing a contributor cannot infer from the directory contents: dropping a file in here globally overrides theme templates on every flow step, because the filter replaces an already-resolved path rather than adding a fallback.
18