A WordPress plugin for WooCommerce that helps prevent duplicate orders by notifying users when they attempt to purchase products that are either in pending orders or have been ordered within the last three months.
This plugin enhances the WooCommerce checkout experience by:
- Detecting products that exist in open orders (pending, on-hold, processing)
- Identifying products ordered within the last 3 months
- Displaying a modern, user-friendly notification with direct links to existing orders
- Allowing customers to make an informed decision to proceed if needed
- Modern modal notification using Tailwind CSS
- Direct links to existing orders (opens in new tabs)
- Option to ignore and proceed with the order
- Fully responsive design
- Automatic duplicate detection during checkout
- Configurable time period for order history checking
- WordPress 5.0+
- WooCommerce 3.0+
- PHP 7.2+
- Upload the
wc-order-notificationdirectory to your/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- WooCommerce will now automatically check for duplicate orders during checkout
The plugin works automatically after installation. When a customer attempts to check out with products that are already in open orders or were ordered recently:
- A modal notification appears showing the duplicate products
- Each duplicate product shows links to the existing orders where it appears
- The customer can:
- Click the order links to review existing orders (opens in new tabs)
- Click "Ignore and Proceed" to continue with the checkout
- Close the modal (same as ignoring) to proceed
wc-order-notification/
├── assets/
│ ├── css/
│ │ └── wc-order-notification.css
│ └── js/
│ └── wc-order-notification.js
├── includes/
│ ├── class-duplicate-checker.php
│ └── class-notification-handler.php
└── wc-order-notification.php
WC_Order_Notification: Main plugin classWC_Duplicate_Checker: Handles checking for duplicate productsWC_Notification_Handler: Manages the notification display and user interaction
This plugin is licensed under the GPL v2 or later.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.