Dankon
- Plugin page: https://plogins.com/dankon/
- Documentation: https://plogins.com/dankon/docs/
- Author: WPPoland.com
- WordPress.org contributor: motylanogha
- Source: https://github.com/wppoland/dankon
Dankon adds an optional tip or donation control to the WooCommerce checkout. The customer picks a preset amount, a percentage of their order or a fixed figure, and the tip is added to the order totals as a native WooCommerce fee, recalculated live through the checkout’s own AJAX. “No tip” is preselected, so the control is fully opt-in.
Why stores pick Dankon
Section titled “Why stores pick Dankon”Cafés, service businesses, charities and creators want a clean way to accept a little extra at checkout without bolting on a heavy donation plugin. Dankon uses a standard WooCommerce fee, no custom totals logic, so the tip flows through order totals, emails and reports the same way shipping or a discount does. The free edition is the full GPL product, not a trial with hidden limits.
What the free edition does
Section titled “What the free edition does”- Preset tip amounts, either percentages of the cart subtotal (
5,10,15> 5%, 10%, 15%) or fixed currency values (2,5,10). - Native WooCommerce cart fee, the tip shows in totals, on the order, in emails and in reports.
- Live totals, choosing an amount recalculates the checkout through WooCommerce’s
update_checkoutAJAX; percentage tips track the live subtotal. - Editable label and description, the heading and supporting line shown above the buttons.
- Opt-in by default, “No tip” is preselected and the tip is added as a non-taxable fee.
- Renders nothing when unusable, disabled, or enabled with no presets, means no markup and no assets on the storefront.
- Accessible buttons, native
<button>controls witharia-pressed, a visible focus ring, anaria-livestatus line andprefers-reduced-motionhandling. - Order audit meta, the applied amount is saved as
_tipping_amounton the order.
How the tip is applied
Section titled “How the tip is applied”Dankon registers a fee on woocommerce_cart_calculate_fees. The customer’s choice is stored in the WooCommerce session over a nonce-protected AJAX call, then the checkout recalculates and the fee appears in the totals. A percentage preset is computed from the pre-tip, tax-exclusive items subtotal each time totals are calculated, so it never goes stale if the cart changes. At checkout the resolved amount is written to the order as _tipping_amount meta for auditing, the tip itself is already part of the totals as a fee.
Where it renders
Section titled “Where it renders”The control is added to the classic (shortcode) checkout at woocommerce_review_order_before_payment, just above the payment methods. Dankon declares compatibility with WooCommerce HPOS and the Cart/Checkout Blocks feature, but the control’s render hook is a classic-checkout hook: on a block-based checkout the fee logic still runs if a selection exists, but the buttons are not rendered.
Editions
Section titled “Editions”- Free and GPL, in preparation for the WordPress.org directory, percentage or fixed presets, live totals, editable copy, order meta.
- Pro, round-up tipping, tip goals, recipient splitting, tip reports and post-purchase tipping. See Configuration for the hooks Pro builds on.
Dankon Pro
Section titled “Dankon Pro”Dankon Pro is the premium edition for Dankon. It is an add-on that requires the free Dankon plugin installed and active; it is distributed through Freemius (licensing, activation and automatic updates), not the WordPress.org directory.
Dankon Pro extends the free checkout tip control. It does not work on its own. If the free plugin is missing, deactivated, or older than the required version, Dankon Pro stays dormant and shows an admin notice instead of booting.
How the PRO features hook in
Section titled “How the PRO features hook in”- Round-up tip, offer a one-click option to round the order total up to the nearest whole amount (or any currency multiple) as a tip via
RoundUpand thetipping/fee_amountfilter. - Tip goal progress bar, show a fundraising thermometer on checkout with a configurable target, message tokens (
{raised},{goal},{remaining},{percent}) and totals from processing and completed tipped orders viaTipGoalBarandTipGoalProgress. - Recipient splitting, let shoppers choose which cause or recipient their tip supports via
RecipientSplittingand free hookstipping/recipientsandtipping/control_before_options. - Tip reports, break down tips by period, preset and recipient with CSV export via
TipReportsunder WooCommerce > Tip Reports. - Post-purchase tipping, invite a tip on the order thank-you page via
PostPurchaseTipping. Tips are collected through a separate pending order linked to the original purchase.
PRO settings screens
Section titled “PRO settings screens”| Screen | Purpose |
|---|---|
| WooCommerce > Dankon Tips | Free tip presets, label and description; PRO Round-up tipping (Pro), Tip goal progress (Pro), Recipient splitting (Pro) and Post-purchase tipping (Pro) sections. |
| WooCommerce > Tip Reports | PRO totals by period, preset and recipient with CSV export. |
Requirements for Dankon Pro
Section titled “Requirements for Dankon Pro”- WordPress 6.5 or later
- PHP 8.1 or later
- WooCommerce 8.0 or later
- The free Dankon plugin, version 0.1.2 or later, installed and active
Next steps
Section titled “Next steps”- Getting started, install, enable, set your presets, verify on the checkout.
Free and PRO
Dankon Pro is a separate paid plugin that extends Dankon. The free edition is not a trial and its features stay available without a time limit.
| Feature | Free | PRO |
|---|---|---|
| Preset amounts | Yes | Yes |
| No tip by default | Yes | Yes |
| Native fee | Yes | Yes |
| Live totals | Yes | Yes |
| Accessible control | Yes | Yes |
| Round-up tip | - | Yes |
| Tip goals and progress bars | - | Yes |
| Recipient / cause splitting | - | Yes |
| Tip reports | - | Yes |
| Post-purchase tipping | - | Yes |