Per-Product Estimated Delivery Message WordPress Function
What it does?
-
Editor toggle: Adds a checkbox in the product shipping panel so merchants can enable/disable the delivery estimate per item.
-
Secure save: Persists the setting with capability and nonce checks.
-
Smart date logic (RO timezone):
-
Orders before 12:00 PM → estimate for the next business day.
-
Orders after 12:00 PM → shifts by one extra day.
-
Saturday/Sunday are skipped to the next weekday.
-
-
On-page notice: When enabled, prints a concise delivery message directly under the Add to Cart area on the single product page.
Why it’s useful?
-
Sets clear expectations: Shoppers see a concrete delivery estimate, reducing uncertainty and cart abandonment.
-
Fewer support tickets: Proactively answers “when will it arrive?” without contacting support.
-
Granular control: Enable only where relevant (e.g., stocked SKUs vs. made-to-order).
-
Localized accuracy: Uses the correct local time window and avoids promising weekend delivery.
Notes
-
Add public holiday rules if needed.
-
Make the cutoff time and timezone configurable.
-
Pair with stock status (e.g., hide the badge for backorders).
