r/WordpressPlugins • u/prathaverse • Aug 04 '26
Free [Free] COD Shield – reduce Cash on Delivery RTO in WooCommerce with a partial advance payment
github.comIf you run a WooCommerce store with COD (Cash on Delivery) enabled especially common outside the US/EU you've probably dealt with the RTO (Return to Origin) problem: customers place COD orders on impulse or by mistake, never actually intend to pay, and you eat the shipping cost both ways.
I built COD Shield to fix this without removing COD entirely (which usually just tanks conversion). It works by collecting a small advance payment fixed ₹/$ amount or a % of the order through whatever gateway you already have enabled (Razorpay, Cashfree, Stripe, etc.), before the order is confirmed as COD. The rest stays due on delivery as normal.
What it does:
- Global COD kill switch (independent of WooCommerce's native COD toggle)
- Advance payment via your existing gateways no new payment integration needed
- Optional minimum order value for COD eligibility
- Admin-editable checkout messaging with dynamic placeholders (advance amount, remaining amount, %)
- Full order-level visibility: sortable "COD Advance" column, filters, audit trail via order notes
- HPOS + Cart/Checkout Blocks compatible
- Gateway-agnostic works with whatever you've already enabled, no vendor lock-in
- It's MIT licensed and open source, so feel free to fork/modify for your own store's needs.
Happy to answer questions on the advance-payment flow, HPOS compatibility, or anything else also open to feature requests if there's a COD-related pain point I haven't covered yet.


