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

architecture.md in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/thankyou/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: thankyou
3 ---
4
5 # thankyou
6
7 ## Responsibility
8
9 Owns the CartFlows Thank You step: the `[cartflows_order_details]` shortcode that renders post-purchase order details (classic WooCommerce template or the two-column "Instant" layout), the thank-you page's access guard and optional custom redirect, its dynamic CSS generation and caching, and the admin settings/design field schema for the step.
10
11 Ownership stops at the order object itself (WooCommerce), the step-meta storage layer, instant-checkout *header* markup and coupon/toggle text (both borrowed from the checkout module), and PRO/offer child-order creation.
12
13 ## Why it is this way
14
15 The module's public surface is a shortcode with destructive, non-idempotent side effects — it clears the cart and session because a thank-you page is the end of a purchase and the cart must not survive it. That is correct on the real flow and dangerous everywhere else, which is why the same shortcode wipes a live cart when previewed.
16
17 The `wcf-tq-layout` string is effectively an undeclared enum branched on across six conditionals in three files with no default, so introducing a fourth layout means finding every one of them.
18