RT Express COD – Cash on Delivery & Order Now Button for WooCommerce

By raintech357

0+ active installationsVersion 2.4.0

Add a one-click Cash on Delivery "Order now" button to WooCommerce product pages. Fast COD popup checkout with shipping and fake-order protection.

Description

RT Express COD is a Cash on Delivery (COD) plugin for WooCommerce that puts an “Order now” button on your product pages. One click opens a fast popup (or side drawer) where the customer enters a few details and places a COD order in seconds, with no cart, no multi-step checkout and no account.

If your customers prefer to pay when the parcel arrives, a long checkout is where you lose them. RT Express COD removes that friction: shoppers go from “I want this” to “order placed” without leaving the product page.

What customers see

  • A clean Order now button under (or above) Add to cart. It pins to the bottom of the screen on mobile so it is always within thumb reach.
  • A popup or side drawer checkout with the product, a quantity selector, only the form fields you choose, and a live order summary: subtotal, shipping, tax, COD fee and total.
  • Real shipping rates from your existing WooCommerce shipping zones and methods.
  • A clear confirmation with the order number and the amount to pay on delivery.

What store owners get

  • More COD orders from product pages. A one-step express checkout means fewer abandoned carts.
  • Fully styleable button. Four styles (gradient, solid, outline, soft), any brand colour, three sizes, full width, optional icon, with a live preview in the settings screen.
  • Protection against fake COD orders. Invisible bot trap, per-visitor rate limiting, duplicate-order blocking and a phone number block list. All checks run on the server.
  • Standard WooCommerce orders. Express orders appear in WooCommerce → Orders with an “Express COD” badge, stock is reduced, and your order emails and workflows keep working.
  • Flexible rules. Limit COD by product type, category, country, or order amount (minimum and maximum).
  • Analytics ready. Every order pushes a rt_express_cod_purchase event to Google Tag Manager / GA4 (dataLayer) and fires a browser event for Meta, TikTok or any other pixel.
  • Fast. Settings and per-product config are cached in the object cache (Redis / Memcached) with an automatic transient fallback. Assets load only on product pages.

Key features

  • “Order now” Cash on Delivery button for simple and variable products
  • Popup or side-drawer checkout, mobile-first and keyboard accessible
  • Quantity selector that respects available stock
  • Live shipping rates, tax and COD handling fee in the order summary
  • Configurable fields: name, phone, email, company, address, city, state, postcode, country, order note
  • Custom phone validation pattern, enforced in the browser and on the server
  • Order status mapping: On hold, Pending payment or Processing
  • Optional COD handling fee added as a real order fee line
  • Restrict by product type, category, country, minimum and maximum amount
  • Anti-spam: honeypot, rate limit per IP, duplicate guard, blocked phone numbers
  • Out-of-stock and “choose product options first” handling for variable products
  • Redirect to the order-received page or a custom thank-you URL
  • [rt_express_cod id="123"] shortcode for landing pages and page builders
  • Admin email notification for each express order
  • Google Tag Manager / GA4 dataLayer event and rtExpressCod:order browser event
  • Custom CSS field
  • HPOS (High-Performance Order Storage) compatible
  • Translation ready (text domain rt-express-cod-for-woocommerce)

Who is it for?

RT Express COD suits any WooCommerce store where Cash on Delivery is a main payment method: single-product and landing-page stores, dropshipping and print-on-demand shops, regional and local retailers, and stores in markets where customers pay on delivery by habit. It works with most themes because the checkout is a self-contained React app scoped to its own CSS.

How it works

  1. Install and activate the plugin, with WooCommerce active.
  2. Open WooCommerce → Express COD and set up the button, form fields, shipping and restrictions.
  3. Visit any product page. The Order now button is already there.
  4. Customers click it, fill in the form and place the order. You see it in WooCommerce → Orders.

Developer notes

  • REST namespace: rt-express-cod/v1.
  • Action rt_express_cod_order_created runs after an order is created, with $order_id and $order.
  • Orders carry the meta _rt_express_cod = yes and _rt_express_cod_source = product_page.
  • Source is included in the plugin. Rebuild the React apps with npm install && npm run build (Node 18+).

Installation

  1. Upload the rt-express-cod-for-woocommerce folder to /wp-content/plugins/, or go to Plugins → Add New → Upload Plugin and choose the ZIP.
  2. Activate the plugin from the Plugins screen. WooCommerce must be active.
  3. Go to WooCommerce → Express COD to customise the button, form and rules.
  4. Open a product page to see the Order now button.

No build step is needed. The plugin ships with its compiled build/ folder.

FAQ

What is a Cash on Delivery “Order now” button for WooCommerce?

It is a button on the product page that lets customers place a COD order straight away. Clicking it opens a short form in a popup, so the customer skips the cart and the full checkout page.

Does it work with the standard WooCommerce Cash on Delivery payment method?

Express orders use the Cash on Delivery payment method (“Cash on Delivery (Express)”) and are created as normal WooCommerce orders. You do not need to change your existing checkout. It stays available for everyone else.

Does it replace the WooCommerce checkout?

No. It adds a faster path for COD customers on the product page. Your normal cart and checkout are untouched.

Does it work with variable products?

Yes. If the customer has not picked the product options yet, the button asks them to choose first, then opens the checkout with the selected variation and quantity.

Can I add the button to a landing page or page builder layout?

Yes. Use the shortcode [rt_express_cod id="123"] with a product ID. On a single product page you can omit the ID.

Does it calculate shipping and tax?

Yes. It quotes live rates from your WooCommerce shipping zones using the customer’s address and shows shipping, tax, COD fee and total in the order summary. You can let the customer choose a method or apply the cheapest or first rate automatically.

How do I stop fake or spam Cash on Delivery orders?

Open WooCommerce → Express COD → Security. Turn on the bot trap, per-visitor rate limit and duplicate-order guard, and add repeat offenders’ numbers to the blocked phone list. These checks run on the server, so they cannot be skipped from the browser.

Can I limit COD to certain countries, categories or order values?

Yes. Under Restrictions you can limit Express COD to specific countries and product categories, and set a minimum and maximum order amount. Product-type switches for simple and variable products are under General.

Can I add a COD fee?

Yes. Set a flat handling fee and a custom label under Order. It is added to the order as a real fee line.

Which order status do express orders get?

You choose: On hold, Pending payment or Processing.

Is it compatible with HPOS (High-Performance Order Storage)?

Yes. Compatibility is declared, and admin links and the Orders list column work with both HPOS and legacy storage.

Can I track conversions in Google Tag Manager, GA4 or Meta Pixel?

Yes. After each order the plugin pushes a rt_express_cod_purchase event with the order ID, value, currency and items to window.dataLayer. It also dispatches a rtExpressCod:order browser event you can listen to for any other pixel.

Where is the data stored?

Orders are standard WooCommerce orders and appear in WooCommerce → Orders. To prefill the form for returning visitors, the customer’s own details are kept in their browser’s local storage and are never sent anywhere until they place an order.

How does caching work?

Settings and per-product form config are cached through the object cache with a transient fallback, under one versioned namespace. Saving settings clears it automatically, and you can clear it any time with the Clear cache button. Stock and availability are always checked live.

Is it translation ready?

Yes. All strings use the rt-express-cod-for-woocommerce text domain, including the React interfaces via wp_set_script_translations.

How do I rebuild the React source?

From the plugin folder run npm install then npm run build (Node 18+). Use npm run dev for an unminified build.

Changelog

2.4.0

  • New: Security tab with an invisible bot trap (honeypot), per-visitor rate limiting, a duplicate-order guard and a blocked phone number list. All enforced on the server.
  • New: quantity selector inside the checkout, capped by available stock.
  • New: side-drawer checkout layout as an alternative to the centered popup.
  • New: restrict Express COD to selected countries.
  • New: [rt_express_cod] shortcode to place the button on landing pages and in page builders.
  • New: analytics events. Pushes rt_express_cod_purchase to dataLayer and fires a rtExpressCod:order browser event.
  • New: “Express COD” badge column on the WooCommerce Orders list (HPOS and legacy).
  • New: customisable reassurance line under the order button; order confirmation now shows the order number and amount due.
  • Improved: redesigned checkout layout with grouped sections, a sticky total and order button, better mobile spacing, focus trap, and keyboard and screen-reader support.
  • Improved: out-of-stock products hide the button (checked live, never cached); variable products prompt for options before opening.
  • Improved: minimum and maximum order limits now show inside the checkout before submitting.
  • Improved: customer IP and user agent saved on the order for fraud review.
  • Fix: admin notification email now links to the order correctly on HPOS stores and lists the items and address.

2.3.0

  • New: fully styleable “Order now” button (text, four styles, colour picker, three sizes, full width, optional icon) with a live preview.
  • Improved: refined default button styling.

2.2.0

  • Changed: the product page shows an “Order now” button that opens the express checkout in a modal.
  • New: live order summary with subtotal, shipping, tax, COD fee and total. Added the /summary REST endpoint.

2.1.0

  • Fix: “The cart is not available” error when placing an order.
  • New: live shipping calculation using your WooCommerce shipping zones, and extra address fields with country and state dropdowns.

2.0.0

  • Rewrite: React admin settings and React storefront form, REST API (rt-express-cod/v1) and a versioned caching layer.
  • New: COD fee, order status mapping, field and validation controls, category and amount restrictions, redirect behaviour, custom CSS, admin notifications and debug mode.
  • New: HPOS compatibility declaration.

1.0.0

  • Initial release.