Product-Level COD Enable WordPress Function
What it does?
-
Editor toggle: Adds a checkbox in the product editor to mark items as eligible for Cash on Delivery (works for simple & variable products).
-
Cart logic at checkout: Scans cart contents; if none of the items are marked as COD-eligible, the COD gateway is removed.
-
Safe saving: Persists the setting when products are saved in admin.
Why it’s useful?
-
Granular control: Offer COD only where it makes business sense (e.g., low-risk items, certain brands, local delivery).
-
Lower operational risk: Prevents COD on products prone to returns/abandonment while keeping it available for safer SKUs.
-
Cleaner UX: Customers see only valid payment methods for their cart, reducing confusion and support load.
Notes
Pairs well with our “Card-Only Product Payment Restriction” rule—this one enables COD per product, while that one disables COD when certain items require card/transfer only.
