The WooCommerce Mail Pending Order plugin extends WooCommerce by introducing a custom email notification sent to customers when their order enters the “Pending” status. This plugin integrates seamlessly with WooCommerce’s email system, registering a new email class (WC_Email_Customer_Pending_Order_Custom
) to handle notifications specifically for pending orders. When an order’s status changes to “Pending,” the plugin triggers the custom email, ensuring customers receive timely updates about their order status. It includes a check for WooCommerce’s presence, displaying an admin notice if WooCommerce is not active. The plugin is lightweight, secure, and easy to use, requiring no additional configuration beyond activation. Ideal for stores that need to keep customers informed during the pending order phase, it enhances the shopping experience with clear communication.
Features of WooCommerce Mail Pending Order
- Custom Pending Order Email: Sends a tailored email notification to customers when their order status changes to “Pending.”
- Seamless WooCommerce Integration: Registers a new email class (
WC_Email_Customer_Pending_Order_Custom
) within WooCommerce’s email system. - Automatic Trigger: Automatically sends the custom email when an order’s status transitions to “Pending.”
- WooCommerce Dependency Check: Displays an admin notice if WooCommerce is not installed or activated.
- Secure Design: Prevents direct access to the plugin file and uses WordPress best practices for safety.
- Localization Support: Uses the
ms-woocommerce-mail-pending
text domain for translatable strings. - Minimal Setup: Works out of the box with no additional configuration required after activation.
Installation
- Upload the plugin folder to the
/wp-content/plugins/
directory. - Activate the WooCommerce Mail Pending Order plugin through the WordPress admin panel.
- Ensure WooCommerce is installed and activated.
- The plugin automatically sends the custom email when an order’s status changes to “Pending.”
Usage of WooCommerce Mail Pending Order
- Activate Plugin: Once activated, the plugin registers the custom email class for pending orders.
- Order Status Change: When an order’s status is set to “Pending” (manually or via payment gateways), the plugin triggers the custom email notification to the customer.
- Customize Email: Modify the email template by editing the custom email class (
class-wc-email-customer-pending-order.php
) in the plugin’sincludes
folder, following WooCommerce’s email template guidelines. - Test Notifications: Create a test order and set its status to “Pending” to verify that the email is sent correctly.
- Translate Strings: Use the
ms-woocommerce-mail-pending
text domain to translate email content via Polylang or other translation plugins.
Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
- WooCommerce 4.0 or higher