=== SL Bank Pricing for WooCommerce ===
Contributors: minhazmohamed
Tags: woocommerce, sri lanka, installments, bank transfer, bnpl
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Special pricing, installment plans, bank transfer details and BNPL badges for Sri Lankan bank customers in WooCommerce.

== Description ==

With **SL Bank Pricing for WooCommerce**, store owners can:

* Show instant-payment discounts and installment plans for 14 major Sri Lankan banks (Bank of Ceylon, Commercial Bank, HNB, Sampath, Seylan, Nations Trust, People's Bank, DFCC, NDB, HSBC Sri Lanka, Pan Asia, Union Bank, Amana Bank, Cargills Bank), with an option to upload a custom logo per bank.
* Show informational "Pay in installments with Koko / Mintpay / Genie" badges alongside pricing.
* Display direct bank transfer (BACS) account details on cart/checkout, and let customers upload a payment slip on the order confirmation page.
* Export/import the full configuration as JSON to copy setup between sites or keep a backup.

The plugin integrates fully with WooCommerce's existing pricing and checkout systems and works with the latest version of WooCommerce.

= Configuration =

Go to **WooCommerce > SL Bank Pricing**. Settings are organized into four tabs:

**General** — Enable pricing on product pages, enable instant-price display, set the customer-facing note. Turn on BNPL badges (Koko, Mintpay, Genie); these are informational only, the plugin does not process BNPL payments.

**Banks & Installments** — Select which banks to offer, then configure per bank: up to four installment durations (6/12/24/36 months) with a surcharge each, an instant-payment discount, and an optional custom logo.

**Bank Transfer** — Enable the bank transfer panel shown on cart/checkout, and enter account name/number/branch per selected bank. This also enables the payment-slip upload form on the order confirmation page for direct bank transfer (BACS) orders.

**Advanced** — Choose whether settings are erased when the plugin is uninstalled. Export settings to a JSON file, or import a previously exported file.

== Installation ==

1. From the WordPress dashboard, navigate to **Plugins > Add New**.
2. Search for `SL Bank Pricing for WooCommerce`.
3. Click **Install Now**, then **Activate**.

Manual installation:

1. Download the plugin ZIP from https://wordpress.org/plugins/sl-bank-pricing-for-woocommerce/.
2. Upload the ZIP via **Plugins > Add New > Upload Plugin**.
3. Activate the plugin.

WooCommerce must be installed and active.

== Frequently Asked Questions ==

= How do I enable special pricing? =

Go to **WooCommerce > SL Bank Pricing > General** and check "Show pricing for all products?".

= Can I select multiple banks? =

Yes, any combination of the 14 supported banks.

= Does this plugin process payments? =

No. Bank pricing, BNPL badges, and bank transfer details are all informational/display features. Actual payment processing is handled by WooCommerce's own payment gateways (e.g. the built-in Direct Bank Transfer / BACS gateway).

= What happens to my settings when I update the plugin? =

Existing settings are automatically migrated to the new format on activation — nothing is lost.

== Screenshots ==

1. Admin view for setting up special pricing options for different Sri Lankan banks.
2. Front-end view of the special pricing and installment options displayed to customers.

== Changelog ==

= 2.0.1 =
* Restored the plugin icon on the WordPress.org listing.
* Tested with WordPress 7.0.

= 2.0.0 =
* Redesigned settings page with a cleaner, tabbed layout.
* Expanded from 6 to 14 supported banks, with the option to upload a custom logo per bank.
* Added "Pay in installments with..." badges for Koko, Mintpay, and Genie.
* Added a direct bank transfer panel showing your account details on cart/checkout, plus a payment-slip upload on the order confirmation page.
* Added settings export/import so you can copy your setup to another site or keep a backup.
* Improved compatibility with the latest version of WooCommerce.
* Added an option to erase all plugin data when uninstalling.
* Fixed the installment "per month" label sometimes not matching the price shown above it.
* Your existing settings carry over automatically — no need to reconfigure after updating.

= 1.1.0 =
* Improved stability and compatibility with WordPress 6.9.
* Enhanced security and data validation throughout the plugin.
* Better error handling for edge cases.
* Minor performance improvements.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 2.0.1 =
Maintenance release: restores the plugin icon on the listing and confirms WordPress 7.0 compatibility.

= 2.0.0 =
Major update: 14 banks, BNPL badges, bank transfer panel with payment-slip upload, and settings export/import. Existing settings migrate automatically.
