About this plugin
Every fake or impulse cash-on-delivery order costs you twice. You pay to ship the parcel, the buyer refuses it at the door, and you pay again when it comes back unpaid (return to origin, or RTO). In India that is often Rs 100 to 200 per parcel, plus packing and stock stuck in transit for a week or two.
Kavach COD Order Verification asks cash-on-delivery buyers to confirm their order before you ship it. Real buyers confirm with one click. Orders nobody confirms are cancelled automatically and their stock goes back on sale.
How it works
- A customer places a cash-on-delivery order, with the block checkout or the classic checkout.
- Instead of “Processing”, the order gets the status COD awaiting confirmation. Its stock is held.
- The order received page shows Please confirm your order with a big Confirm my order button, and the customer gets an email with Confirm my order and Cancel this order buttons.
- A confirmed order moves to Processing and you ship it as usual. A cancelled order is cancelled and its stock is put back.
- If the customer does nothing, one reminder goes out after 6 hours and the order is cancelled after 24 hours. You choose the hours.
Features
- New order status “COD awaiting confirmation”: in the order list filters, the status dropdown and the bulk actions, counted in the Orders menu bubble and, from WooCommerce 11.2, treated as “actionable” in WooCommerce Analytics.
- Choose which orders need confirmation: all COD orders, only guests, only first-time customers (no earlier processing or completed order with the same account, email or phone), or only orders above an amount.
- Confirmation email with big Confirm and Cancel buttons, editable under WooCommerce > Settings > Emails (subject, heading, extra text, HTML or plain text). The templates can be copied to your theme.
- Reminder email after a number of hours you choose (default 6), sent once.
- Automatic cancellation after a number of hours you choose (default 24). The stock is restored. If you turn on WooCommerce’s “Cancelled order” email for customers (WooCommerce > Settings > Emails, recent WooCommerce versions), the customer is told.
- One-time, signed links: each link carries a token signed with HMAC-SHA256 and a secret key created on your site. It works for one order and one action, only while the order is waiting for confirmation and the confirmation time has not run out. Tampered or reused links are refused and the page is rate-limited.
- Safe with email link scanners: opening a link only shows the order and one button. Nothing changes until the customer presses it.
- Confirm on WhatsApp (optional): a button on the order received page opens WhatsApp with “CONFIRM order #123” addressed to your number.
- My Account: customers can confirm or cancel waiting orders from My Account > Orders.
- Tools for you: “Mark COD order as confirmed” and “Resend COD confirmation email” in the Order actions box, and “Mark COD confirmed” in the orders list bulk actions (HPOS and classic order screens). The order screen shows when the customer was asked, the reminder and the cancellation time.
- 30-day numbers: orders needing confirmation, confirmed, cancelled by the customer, cancelled automatically, confirmation rate and estimated shipping saved, in your store currency.
- Your own words for the order received page and the confirm page.
- “New order” email when you want it: when the order is placed, as WooCommerce does, or only once it is confirmed.
Works with
- Block checkout (Store API) and classic (shortcode) checkout
- WooCommerce’s built-in Cash on delivery payment method
- High-Performance Order Storage (HPOS) and the older posts storage
- Block themes and classic themes: the confirm page uses your theme’s header and footer
For developers
Filters: upaya_codc_needs_confirmation (decide per order), upaya_codc_previous_order_statuses, upaya_codc_confirmed_status, upaya_codc_link_hours, upaya_codc_whatsapp_text, upaya_codc_rate_limits, upaya_codc_client_ip, upaya_codc_count_in_menu, upaya_codc_batch_size. Actions: upaya_codc_confirmed and upaya_codc_cancelled. php, which you can copy to yourtheme/woocommerce/.
Privacy
The plugin sends nothing to any outside service and adds no tracking. It stores on each order whether, when and how it was confirmed or cancelled. To rate-limit the confirm page it keeps counters for up to one hour under a salted hash of the visitor’s IP address, never the address itself.
me that the customer can choose to open; the plugin itself sends nothing to WhatsApp. A suggested paragraph is added to your privacy policy guide.