=== Krompago - Checkout Fees for WooCommerce ===
Contributors: motylanogha
Tags: woocommerce, checkout, fees, surcharge, payment fee
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 1.1.13
Requires Plugins: woocommerce
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add fixed or percentage fees to the WooCommerce cart and checkout.

== Description ==

Krompago lets you add one or more fees to the WooCommerce cart and checkout. Each fee is either a fixed amount or a percentage of the product subtotal including product tax.

Fees are added through the WooCommerce fees API, so they appear in the cart totals, on the checkout page, and on the saved order, the same way shipping or tax does. The cart and checkout blocks and HPOS are both supported.

The code lives at [github.com/wppoland/krompago](https://github.com/wppoland/krompago) if you want to read it, report a bug, or suggest a fee type.

= Documentation and links =

* **Documentation**: [plogins.com/krompago/docs/](https://plogins.com/krompago/docs/)
* **Plugin page**: [plogins.com/krompago/](https://plogins.com/krompago/)
* **Source code**: [github.com/wppoland/krompago](https://github.com/wppoland/krompago)
* **Bug reports and feature requests**: [github.com/wppoland/krompago/issues](https://github.com/wppoland/krompago/issues)
* **Krompago Pro**: [plogins.com/krompago-pro/](https://plogins.com/krompago-pro/)


= What it does =

* Add as many fees as you need, each a fixed amount or a percentage of the cart.
* Flag a fee as taxable so WooCommerce runs it through your normal tax rules.
* Turn every fee off at once with a master switch, without losing the rows you set up.
* Enable or disable individual fees, so you can keep a fee configured but inactive.
* Manage it all from one settings screen under WooCommerce > Surcharge.
* No external services, no account, no tracking.

== Krompago Pro ==

Krompago Pro is a separate paid plugin that extends Krompago.

Included in Krompago:

* Fixed and percentage fees
* Multiple fees at once
* Per-fee enable
* Custom receipt label
* Taxable fees

Krompago Pro adds:

* Fee-exempt roles
* Tiered fees
* Per-product and per-category fees
* Schedule windows
* Per-fee reporting

The free edition is not a trial and its features stay available without a time limit.

* **Krompago Pro** - [plogins.com/krompago-pro/](https://plogins.com/krompago-pro/)
* **Compare editions and pricing** - [plogins.com/krompago-pro/pricing/](https://plogins.com/krompago-pro/pricing/)
* **PRO documentation** - [plogins.com/krompago-pro/docs/](https://plogins.com/krompago-pro/docs/)

== Installation ==

1. Upload the plugin to `/wp-content/plugins/krompago`, or install via Plugins > Add New.
2. Activate it. WooCommerce must be active.
3. Go to WooCommerce > Surcharge and add your first fee.

== Frequently Asked Questions ==

= Does it require WooCommerce? =

Yes. Krompago extends the WooCommerce cart and checkout and does nothing without it.

= How is a percentage fee calculated? =

It is taken from the cart contents subtotal, including the tax on those items, and before any shipping or other fees are added. Percentages are capped at 100.

= Can I add more than one fee? =

Yes. Add as many fee rows as you need; each one is applied independently.

= Where do fees appear? =

On the checkout order totals table, labelled with the name you set for each fee row.

= Do percentage fees include tax? =

Percentage fees are calculated from the cart contents subtotal including line tax, before shipping and other fees.


= Does this plugin work on WordPress Multisite? =

Yes. This plugin is compatible with WordPress Multisite. Network activate it or activate it on individual sites; each site keeps its own settings and data.

== Screenshots ==

1. A checkout fee line in the cart totals.
2. Settings under WooCommerce > Surcharge: fee label, type and amount.
3. The fee in the cart on a phone.
== External Services ==

Krompago does not connect to any external service. It calls no remote APIs, loads no third-party scripts, fonts, or trackers, and sends nothing off your site. Its only stylesheet and script are served from the plugin folder and loaded just on the WooCommerce > Surcharge admin screen.

All data stays in your own database: your fee rows and the master switch are kept in the `surcharge_settings` option, and a schema marker in `surcharge_db_version`. Both options are removed when you delete the plugin. The plugin creates no custom tables and sends no email; fees are applied at runtime through WooCommerce's own cart fees API.

== Translations ==

Krompago is fully translatable and ships the `krompago.pot` template. Translations are delivered by WordPress.org language packs from translate.wordpress.org, which is where Polish, German and Spanish are being contributed; the package itself carries no compiled translation files.

== Changelog ==

= 1.1.13 =
* Readme: link to the Krompago Pro page.

= 1.1.12 =
* Removed an unused field from the PRO notice config that still carried old release wording.

= 1.1.11 =
* PRO notice on the settings screen: cards corrected to what the PRO plugin does, and plainer wording.

= 1.1.10 =
* Translations: German, Spanish and Polish catalogues now carry the two updated fee help strings.

= 1.1.9 =
* Fee settings: the percentage help now says the base is the product subtotal including product tax, which is what the fee has always used.

= 1.1.8 =
* Plugins list shows a shortcut to the settings screen.

= 1.1.7 =
* Translations: Polish, German and Spanish cover the newest interface strings.

= 1.1.6 =
* Fixed: deleting the plugin on a multisite network now removes its settings from every site, not only the main one.

= 1.1.5 =
* The Dankon line under Ecosystem integrations links to the plugin search on the Add Plugins screen when Dankon is not installed.

= 1.1.4 =
* Settings: added an Ecosystem integrations card that says whether Dankon - Tips and Gratuity for WooCommerce is active.

= 1.1.3 =
* Links point at the new plogins.com address and the renamed GitHub repository.

= 1.1.2 =
* The upgrade notice's "Coming soon" and "Get notified" labels are English source strings for every language; Polish sites used to get their own Polish source text, which translators in other languages then saw untranslated.

= 1.1.1 =
* The sidebar upgrade promo now follows the same dismissal as the banner. Dismissing the banner used to leave a full-height advert on the settings screen for good, which is not what the WordPress.org guideline on upgrade prompts means by used with moderation.

= 1.1.0 =
* Renamed to Krompago. The WordPress.org review team asks a plugin name to lead with a distinctive, coined identifier rather than a generic descriptive word. Krompago is Esperanto for an extra payment. The text domain follows the name; the stored fee rows, the settings and every hook are unchanged.

= 1.0.11 =
* Fixed: the PRO upgrade promo kept selling to people who had already bought the paid edition. Only the banner could be dismissed, so the sidebar promo and the locked feature cards followed a paying customer around for good. The promo now checks whether the paid edition is active and steps aside when it is.
* Fixed: arrow glyphs in the admin menu paths, and in the strings handed to translators. An arrow inside a translatable string makes the glyph every translator's problem and changes the layout in any locale that drops it.

= 1.0.10 =
* Fixed: deleting the plugin left the per-user "dismiss" flag from the PRO notice in the database. Uninstall now removes it for every user, not just the one who dismissed it.

= 1.0.9 =
* The translation template was regenerated. It still named an older version of the plugin and pointed at source lines that had since moved, which is what translation tools read to show a string in context.

= 1.0.8 =
* Renamed to Plogins Surcharge - Checkout Fees for WooCommerce so the name leads with the brand rather than a generic word, which is what the WordPress.org plugin review team asks for. The plugin slug is unchanged.

= 1.0.7 =
* Tested against WordPress 7.1. Verified by activating this build on a clean 7.1 install with WooCommerce 11.1, not by editing the header.

= 1.0.6 =
* Fixed the PRO promo on the settings screen quoting a price in PLN. PRO is priced and charged in EUR, so an admin on a Polish site was shown a zloty amount and then billed in euro, and the zloty figure was a fixed conversion that drifted from the real charge as the rate moved. The promo now shows the euro price that is actually taken.

= 1.0.4 =
* Translations: completed Polish, German and Spanish for the PRO upgrade panel.

= 1.0.3 =
* Fixed low-contrast admin headings under an OS dark-mode preference.

= 1.0.2 =
* Added bundled Polish, German and Spanish translations for the plugin interface.

= 1.0.1 =
* First stable release.

= 0.1.2 =
* Renamed to Plogins Surcharge for WooCommerce for a more distinctive plugin name.

= 0.1.1 =
* `surcharge/fee_amount` filter so add-ons can override per-fee amounts (e.g. tiered rules in Surcharge Pro).

= 0.1.0 =
* Initial release: fixed and percentage checkout fees, taxable option, and a master switch.
