WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-custom-thank-you

WooCommerce Custom Thank You Message

A simple WordPress plugin to display a dynamic thank you message for WooCommerce orders.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/ghaliasaleh/woocommerce-custom-thank-you/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A lightweight, OOP-based WordPress plugin that allows store owners to display a customizable and dynamic "Thank You" message on the WooCommerce Order Received page.

🚀 Key Features

  • Dynamic Placeholders: Supports [customer_name] and [order_number] to personalize the message for each buyer.
  • Admin Settings Panel: Seamlessly integrated under the WooCommerce settings menu using the native WordPress Settings API.
  • Security First:
    • Strict input sanitization (sanitize_textarea_field).
    • Secure output escaping (esc_textarea, wp_kses_post).
    • Capability checks (manage_woocommerce) for admin access.
  • Object-Oriented Architecture (OOP): Built with scalability and maintainability in mind using the Singleton pattern and separated concerns (Admin vs. Frontend logic).
  • Theme Agnostic: Uses native WooCommerce hooks (woocommerce_thankyou) to ensure compatibility with any standard WooCommerce theme.

📸 Screenshots

(Add your screenshots here later)

  1. Admin Dashboard Settings
  2. Frontend Order Received Page with Dynamic Message

💻 Code Architecture

The plugin follows WordPress Coding Standards (WPCS) and is structured as follows:


woo-custom-thankyou/
├── woo-custom-thankyou.php       # Main plugin file (Singleton pattern)
├── includes/
│   ├── class-wcty-admin.php      # Handles backend settings and Settings API
│   └── class-wcty-frontend.php   # Handles frontend logic and WooCommerce hooks
└── README.md                     # Plugin documentation

🛠️ Installation
Clone or download this repository.
Upload the woo-custom-thankyou folder to the /wp-content/plugins/ directory.
Activate the plugin through the 'Plugins' menu in WordPress.
Go to WooCommerce > Thank You Message to configure your custom text.

🧠 Technical Concepts Demonstrated
This project demonstrates proficiency in:
WordPress Plugin API (Actions & Filters).
WooCommerce Customization (wc_get_order(), woocommerce_thankyou).
Data Sanitization and Escaping.
PHP Object-Oriented Programming (OOP).

---