| 开发者 |
raintech357
rtao |
|---|---|
| 更新时间 | 2026年11月15日 22:33 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
rt_express_cod_purchase event to Google Tag Manager / GA4 (dataLayer) and fires a browser event for Meta, TikTok or any other pixel.[rt_express_cod id="123"] shortcode for landing pages and page buildersdataLayer event and rtExpressCod:order browser eventrt-express-cod-for-woocommerce)rt-express-cod/v1.rt_express_cod_order_created runs after an order is created, with $order_id and $order._rt_express_cod = yes and _rt_express_cod_source = product_page.npm install && npm run build (Node 18+).rt-express-cod-for-woocommerce folder to /wp-content/plugins/, or go to Plugins → Add New → Upload Plugin and choose the ZIP.build/ folder.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.
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.
No. It adds a faster path for COD customers on the product page. Your normal cart and checkout are untouched.
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.
Yes. Use the shortcode [rt_express_cod id="123"] with a product ID. On a single product page you can omit the ID.
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.
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.
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.
Yes. Set a flat handling fee and a custom label under Order. It is added to the order as a real fee line.
You choose: On hold, Pending payment or Processing.
Yes. Compatibility is declared, and admin links and the Orders list column work with both HPOS and legacy storage.
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.
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.
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.
Yes. All strings use the rt-express-cod-for-woocommerce text domain, including the React interfaces via wp_set_script_translations.
From the plugin folder run npm install then npm run build (Node 18+). Use npm run dev for an unminified build.
[rt_express_cod] shortcode to place the button on landing pages and in page builders.rt_express_cod_purchase to dataLayer and fires a rtExpressCod:order browser event./summary REST endpoint.rt-express-cod/v1) and a versioned caching layer.