=== Weels Same-Day Delivery ===
Contributors: weelsinc
Tags: shipping, same-day delivery, woocommerce shipping, GTA delivery, carrier
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.4.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 7.0
WC tested up to: 10.5

Same-day delivery for WooCommerce stores in the Greater Toronto Area. Generate labels, show live rates at checkout, and track every package.

== Description ==

Weels connects your WooCommerce store to a same-day delivery network across the Greater Toronto Area and surrounding regions.

**How it works:**

1. A customer places an order and sees live Weels delivery rates at checkout
2. You open the order, preview the rate breakdown, and generate a shipping label
3. Weels dispatches a driver, and the customer gets tracking updates automatically

**Features:**

* Live same-day delivery rates at checkout — no manual price entry
* One-click or automatic shipping label generation
* Rate preview with full cost breakdown (base rate, surcharges, discount, tax, total) before creating a shipment
* Canada Post and UPS carrier rates alongside Weels same-day delivery
* Credit balance display and one-click top-up when balance is low
* Per-order delivery options — age verification (18+/19+/21+), signature, identity verification, fragile
* Configurable same-day cutoff time (up to 11:00 AM)
* Delivery date picker for Weels shipments
* Rate adjustment — mark up or mark down rates shown to customers
* Tracking numbers added to order notes automatically
* Void and regenerate labels from the order page
* Photo proof of delivery on every shipment

**Pricing:**

The plugin is free. You pay per delivery through your Weels account starting at $16/package. No monthly fees, no minimums.

**Service Area:**

Currently delivering across the Greater Toronto Area and surrounding regions in Ontario, Canada.

== Installation ==

1. In your WordPress admin, go to **Plugins > Add New** and search for **Weels Same-Day Delivery**
2. Click **Install Now**, then **Activate**
3. Go to **WooCommerce > Settings > Shipping > Weels Same-Day Delivery**
4. Enter your Weels API key and click **Save changes** — the plugin will validate your key and show your connected account
5. Set your default package dimensions, delivery options, and cutoff time
6. You're done — Weels rates will appear at checkout automatically

Don't have a Weels account yet? [Create one for free](https://www.weels.ca/get-started) and grab your API key from your organization settings.

For detailed setup instructions, visit [weels.ca/woocommerce](https://www.weels.ca/woocommerce)

== Frequently Asked Questions ==

= Do I need a Weels account? =

Yes. Sign up for free at [weels.ca/get-started](https://www.weels.ca/get-started), create an organization, and get your API key from the API & Integrations section.

= What areas do you deliver to? =

We deliver across the Greater Toronto Area and surrounding regions — over 290 postal codes in Ontario, Canada.

= How does billing work? =

Billing goes through your Weels account. Use prepaid credits with auto top-up or get invoiced weekly. The plugin itself is free.

= Can I adjust the shipping rate customers see? =

Yes. In the plugin settings, use the Rate Adjustment field to mark up or mark down the Weels rate by a percentage before it's shown at checkout.

= Can I void a label after generating it? =

Yes, as long as the package hasn't been picked up by a driver. Voiding refunds any prepaid credits automatically.

= What happens after the cutoff time? =

Orders placed after your cutoff time (configurable up to 11:00 AM) default to next business day delivery. You can still adjust the delivery date per order.

== Changelog ==

= 1.4.5 =
* Fix: "View Label" now works without requiring a Weels session (authenticates via API key)

= 1.4.4 =
* Fix: Checkout estimated delivery now enforces the same-day cutoff time setting
* Fix: Label creation uses configured cutoff time instead of hardcoded 2 PM
* Fix: Cutoff time clamping logic corrected for values above 11:00 AM

= 1.4.3 =
* Rate preview with full cost breakdown before creating a shipment
* Shipping service selector — choose between Weels same-day and carrier rates (Canada Post, UPS) per order
* Per-order delivery options — override age verification, signature, identity verification, and fragile on each shipment
* Delivery date picker for Weels shipments with configurable cutoff time
* Credit balance display and in-app top-up via saved payment cards
* Connected account card with unlink option replaces raw API key after linking
* WooCommerce dependency check with helpful install prompt
* Bundled SweetAlert2 (no external CDN dependency)
* Store address validation before shipment creation

= 1.2.0 =
* Canada Post and UPS carrier shipping support
* Multi-package shipment form
* Carrier rate detection from checkout selection

= 1.0.0 =
* Initial release
* Live shipping rates at checkout
* Automatic and manual label generation
* Order meta box with label, tracking, and void actions
* Age verification and signature options
