=== RT Express COD for WooCommerce ===

Contributors: raintech357
Tags: woocommerce, cod, cash-on-delivery, express, checkout
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 3.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html


Lightweight express Cash On Delivery (COD) workflow for WooCommerce—capture name, phone and a note on product pages and create an on-hold order.


== Description ==

RT Express COD for WooCommerce adds a minimal workflow for merchants who want to quickly capture basic customer details (name, phone, note) at product pages and create an on-hold WooCommerce order without going through the full checkout. It's useful for phone-order workflows, quick reservations, or marketplaces that finalize orders manually.

Features:
- Capture full name, phone and order note on the product page
- Create a WooCommerce order in `on-hold` status
- Optionally reduces stock and empties cart to mimic checkout behavior
- Lightweight: enqueues a small frontend script and a simple form

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install via the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Visit any single product page, add a product to the cart and use the displayed "Additional Details" form to save details and create an on-hold order.

== Screenshots ==

1. Product page with hidden "Additional Details" form that appears after Add to Cart.

== Frequently Asked Questions ==

= How does this plugin create orders without checkout? =
The plugin uses WooCommerce's programmatic order creation (wc_create_order()). After capturing the details it adds cart items to a new order, sets billing info and places the order `on-hold`.

= Will it process payments? =
No. This plugin is focused on Cash on Delivery or manual processing workflows. It creates orders with status `on-hold` and does not redirect to payment gateways.

== Changelog ==

= 1.0.0 =
- Initial release: capture details on product page and create an on-hold WooCommerce order.

== Arbitrary section ==

If you have feature requests or want to contribute, please open an issue or submit a PR on the plugin repository.

== Upgrade Notice ==

= 1.0.0 =
Initial release.

== License ==

GPLv2 or later
