=== Woo Installments – Pay in Parts for WooCommerce ===
Contributors: fahadmahmood
Tags: woocommerce, installments, deposits, partial payments, pay in parts
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 2.1.0
Requires PHP: 7.4
Requires Plugins: woocommerce
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell any WooCommerce product with a deposit and installments. Customers pay each part manually through a secure pay link, using any payment gateway.

== Description ==

Let customers buy anything in parts. Choose a usage type, define plans, and you are live.

**Free**
* Deposit + equal installments, or equal installments with no deposit
* Unlimited plans (every N days, weeks or months)
* Enable per product or for the whole shop, with a minimum price
* Payment schedule on thank-you page, emails, order screen and My Account > Installments
* Each installment is a real WooCommerce order with a pay link, so every gateway works
* Fulfil after the first payment or only when fully paid ("Partially paid" status)
* Settings tabs adapt to the usage type you choose
* Schedule preview in cart and checkout
* Admin can mark an installment paid (cash or bank transfer)
* Variable product support
* Shortcode `[woo_installments]` to show a customer's schedules on any page
* WooCommerce Blocks cart/checkout and HPOS compatible

**Pro** (all code lives in the `pro/` folder, unlocked by a license key)
* Custom percentage schedules, e.g. 30,20,20,30
* Email reminders before due date and when overdue
* Late fees with grace period
* Early payoff with optional discount
* Reports: open plans, outstanding and overdue balances, CSV export, dashboard widget
* Interest or service fee per plan
* Plan rules by user role and product category
* Customer extension requests with admin approval
* Default handling: hold or cancel (and restock) after N overdue installments
* SMS / WhatsApp reminders through a webhook
* Receipts per installment
* Optional auto-charge scheduler for gateway adapters (hook `woo_inst_autocharge`)
* Reservation preset: a deposit plan with one later installment
* License and update client (set `woo_inst_license_server` and `woo_inst_update_url`)

Note: tax and shipping are collected with the first payment.

== Installation ==
1. Install and activate WooCommerce, then this plugin.
2. Go to WooCommerce > Installments, pick a usage type and create plans.
3. Edit a product, tick Installments in the General tab (or enable for all products).

== Changelog ==

= 2.1.0 =
* New: cart and checkout schedule preview, admin mark-as-paid, variable products, [woo_installments] shortcode.
* New (pro): plan fees, role and category rules, extension requests, default handling, SMS/WhatsApp webhook, receipts, CSV export, dashboard widget, auto-charge scheduler.
* New: license and update client, translation template (.pot), WooCommerce Blocks compatibility flag, unit tests (php tests/run.php).

= 2.0.0 =
* Rebuilt from a course-selling tool into a generic pay-in-parts plugin for any product.
* New title and description.
* New config-driven settings: tabs and fields appear per usage type.
* New plan engine, installment child orders with pay links, "Partially paid" status.
* New My Account > Installments page and schedule in emails.
* New pro/ folder: custom schedules, reminders, late fees, early payoff, reports.
* Tested up to WordPress 7.1; requires PHP 7.4, WooCommerce 7.0+; HPOS compatible.
* Removed course packages, playlists, ghost products and bundled Bootstrap/FontAwesome.
* Old v1 settings are preserved in the `woo_inst_legacy_v1` option but not used.

= 1.4.0 =
* Last release of the course-selling version.

== Upgrade Notice ==

= 2.0.0 =
Major rewrite. Course features were removed. Review WooCommerce > Installments after updating. Back up your site first.
