=== Kartqube Smart Checkout + COD ===
Contributors: kartqube
Tags: cash on delivery, cod, one page checkout, whatsapp, woocommerce checkout
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

One-page WooCommerce checkout for Cash on Delivery stores. COD orders wait for your OK; confirm them from one list with a WhatsApp button.

== Description ==

In India, many Cash on Delivery orders are never accepted at the door. Each one costs you shipping both ways. The usual fix is to confirm every COD order with the customer before you ship it — and that is exactly what this plugin is built around.

It was made for, and is used on, a real WooCommerce store that sells handmade products and confirms every COD order on WhatsApp.

**What the free plugin does**

* **One-page checkout.** Contact, address and payment on one mobile-first screen. Indian PIN code keypad, state list, and the right fields for every other country.
* **COD orders wait for you.** A Cash on Delivery order stays "Pending" and the customer sees an "Order pending verification" page with a WhatsApp button. No purchase is counted until you confirm.
* **"COD orders to confirm" list.** Every waiting COD order on one screen. One tap opens your WhatsApp with the confirmation message already written for that customer (items, total, address). Then press Confirm or Cancel. Nothing is sent automatically and no WhatsApp API is needed.
* **COD price limits.** Offer COD only between a smallest and largest order total. Outside it, customers pay online and see why.
* **Buy now button** (off until you turn it on) next to Add to cart, straight to checkout with just that product.
* **Clean cart page and order-pay page** (Razorpay and Cashfree cards).
* **Works with your gateways.** Razorpay or Cashfree for online payment, WooCommerce's own Cash on Delivery for COD.
* **Never stops an order** because the email already has an account — it goes through as a guest order instead of "Please log in".
* **Every feature has its own switch.** Turn on only what you want — the checkout page, thank-you page, cart page, COD confirmation, Buy now button, account rule, delivery box, trust badges. Every text the customer sees can be changed or hidden.
* No tracking, no external calls, no ads in your dashboard.

**Pro add-on**

Smart Checkout + COD Pro adds fake COD protection (blocks repeat no-show customers, matched by phone, email, name + address or IP), a "Returned (RTO)" order status, a Low / Medium / High risk score with customer history on every COD order, a prepaid discount, PIN code rules with a delivery checker on product pages, auto-cancel for orders nobody confirms, and a COD report showing the PIN codes that return the most. Pro is a separate add-on; this free plugin is complete on its own.

== Installation ==

1. Install from Plugins → Add New, or upload the zip under Plugins → Add New → Upload Plugin. WooCommerce must be active.
2. Activate.
3. Make sure your Checkout page contains the `[woocommerce_checkout]` shortcode (not the Checkout block).
4. Go to **Kartqube → Checkout & COD**, add your WhatsApp number under General, and save.
5. Place a test COD order in a private window. It appears under **Kartqube → COD to confirm**.

== Frequently Asked Questions ==

= Does it send WhatsApp messages by itself? =

No. It opens WhatsApp on your phone or computer with the message ready, and you press send. That keeps it free, needs no WhatsApp Business API, and you stay in control of every message.

= Will it work with the WooCommerce Checkout block? =

The one-page checkout needs the classic `[woocommerce_checkout]` shortcode on the Checkout page. The settings page tells you if your page uses the block.

= What happens when I confirm an order? =

It moves to Processing, exactly as if you changed the status yourself, and WooCommerce sends its usual email. Cancel moves it to Cancelled and WooCommerce puts the stock back.

= Can I turn the Kartqube pages off? =

Yes. The checkout, thank-you and cart pages each have their own switch. With a page off, WooCommerce's own page is used.

== Screenshots ==

1. The one-page checkout: contact, address and payment on one screen.
2. After a Cash on Delivery order, the customer sees "Order pending verification" with your WhatsApp and Call buttons.
3. COD orders to confirm: one tap opens WhatsApp with the message ready, then Confirm or Cancel.
4. Settings: every feature has its own switch.

== Changelog ==

= 1.0.0 =
* First release as a standalone plugin (the checkout comes from the Kartqube plugin used on our own store).
* New: "COD orders to confirm" list with one-tap WhatsApp, Confirm and Cancel.
* New: COD price limits.
* New: automatic Buy now button on product pages.
