It sounds like you’re experiencing an issue where WooCommerce is creating duplicate orders with identical timestamps. This can be problematic for inventory management, reporting, and customer service.
Common Causes
- Double form submission: Customers clicking the checkout button multiple times
- Payment gateway issues: Some gateways may trigger multiple callbacks
- Plugin conflicts: Especially with caching or optimization plugins
- AJAX checkout issues: JavaScript errors during checkout
- Server performance problems: Slow response times leading to retries
Solutions to Try
Immediate Fixes
- Check WooCommerce logs (WooCommerce > Status > Logs)
- Review recent plugin updates that might have caused this
Prevention Methods
- Add checkout anti-duplication code:
// Add to your theme's functions.php or a custom plugin
add_action('woocommerce_before_checkout_process', 'prevent_duplicate_orders');
function prevent_duplicate_orders() {
if (WC()->session->get('order_processed') ) {
wc_add_notice( __( 'Your order is already being processed.', 'woocommerce' ), 'error' );
wp_safe_redirect( wc_get_checkout_url() );
exit;
}
WC()->session->set('order_processed', true);
}
- Enable the built-in WooCommerce duplicate prevention:
- Go to WooCommerce > Settings > Advanced
- Enable “Hold Stock” and set to 5-10 minutes
- Payment gateway specific solutions:
- For PayPal, enable “Payment Data Transfer” (PDT)
- For Stripe, check webhook settings
Advanced Troubleshooting
If the issue persists:
- Disable plugins one by one to identify conflicts
- Switch to a default theme temporarily
- Check server error logs for PHP errors during checkout
- Consider a plugin like “WooCommerce Order Duplicator” for better control
Would you like more specific help with any of these solutions or need help identifying which might be causing your particular issue?

Leave a Reply
You must be logged in to post a comment.