| 1 |
# Thank You Module -- Ability Mining |
| 2 |
|
| 3 |
**Module:** Thank You (Module 6) |
| 4 |
**Priority:** P1 |
| 5 |
**Directory:** `cartflows/modules/thankyou/` |
| 6 |
**WC Required:** Yes |
| 7 |
**Date:** 2026-03-04 |
| 8 |
|
| 9 |
--- |
| 10 |
|
| 11 |
## Source Files Reviewed |
| 12 |
|
| 13 |
- `class-cartflows-thankyou.php` -- Module loader |
| 14 |
- `classes/class-cartflows-thankyou-meta-data.php` -- Meta fields, settings, design configuration |
| 15 |
- `classes/class-cartflows-thankyou-markup.php` -- Frontend rendering, redirect logic, CSS generation |
| 16 |
|
| 17 |
--- |
| 18 |
|
| 19 |
## Meta Keys Identified |
| 20 |
|
| 21 |
| Key | Type | Description | |
| 22 |
|-----|------|-------------| |
| 23 |
| `wcf-tq-layout` | string (enum) | Skin: `legacy-tq-layout` or `modern-tq-layout` | |
| 24 |
| `wcf-show-overview-section` | yes/no | Show order overview | |
| 25 |
| `wcf-show-details-section` | yes/no | Show order details | |
| 26 |
| `wcf-show-billing-section` | yes/no | Show billing details | |
| 27 |
| `wcf-show-shipping-section` | yes/no | Show shipping details | |
| 28 |
| `wcf-show-tq-redirect-section` | yes/no | Enable redirect after purchase | |
| 29 |
| `wcf-tq-redirect-link` | URL | Redirect destination URL | |
| 30 |
| `wcf-tq-text` | string | Custom thank you page text | |
| 31 |
| `wcf-tq-primary-color` | color hex | Primary color | |
| 32 |
| `wcf-tq-text-color` | color hex | Text color | |
| 33 |
| `wcf-tq-font-family` | string | Text font family | |
| 34 |
| `wcf-tq-font-size` | number | Text font size (px) | |
| 35 |
| `wcf-tq-heading-color` | color hex | Heading color | |
| 36 |
| `wcf-tq-heading-font-family` | string | Heading font family | |
| 37 |
| `wcf-tq-heading-font-wt` | string | Heading font weight | |
| 38 |
| `wcf-tq-container-width` | number | Container width (px) | |
| 39 |
| `wcf-tq-section-bg-color` | color hex | Section background color | |
| 40 |
| `wcf-enable-design-settings` | yes/no | Enable design settings | |
| 41 |
| `wcf-disable-step` | yes/no | Disable step toggle | |
| 42 |
| `wcf-custom-script` | textarea | Custom script | |
| 43 |
|
| 44 |
--- |
| 45 |
|
| 46 |
## Ability Candidates |
| 47 |
|
| 48 |
### 1. get-thankyou-settings (Configuration/Read) |
| 49 |
Returns full configuration of a thank you step: layout, section visibility toggles, custom text, redirect settings, and design options. |
| 50 |
|
| 51 |
### 2. update-thankyou-layout (Configuration/Write) |
| 52 |
Changes the thank you skin/layout (legacy or modern). |
| 53 |
|
| 54 |
### 3. update-thankyou-sections (Configuration/Write) |
| 55 |
Toggles visibility of order sections: overview, details, billing, shipping. |
| 56 |
|
| 57 |
### 4. update-thankyou-redirect (Configuration/Write) |
| 58 |
Configures post-purchase redirect toggle and URL. |
| 59 |
|
| 60 |
### 5. update-thankyou-custom-text (Configuration/Write) |
| 61 |
Sets the custom thank you message text. |
| 62 |
|
| 63 |
--- |
| 64 |
|
| 65 |
## Rejected During Mining (with reasons) |
| 66 |
|
| 67 |
- **Design/styling meta** (colors, fonts, container width): Too granular for AI agent use. Design settings are visual tweaks better handled through the page builder UI. Low agent utility. |
| 68 |
- **Custom script**: Security concern -- allowing arbitrary script injection via API is a safety risk. |
| 69 |
- **Disable step**: Already available via generic step settings. Low incremental value. |
| 70 |
- **Instant layout settings** (left/right bg colors, order summary position): Dependent on instant layout being enabled at flow level. Niche use case with low agent utility. |
| 71 |
|