Skip to content

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.

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.

  • 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 and in emails.
  • Live totals, choosing an amount recalculates the checkout through WooCommerce's update_checkout AJAX; 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 with aria-pressed, a visible focus ring, an aria-live status line and prefers-reduced-motion handling.
  • Order audit meta, the applied amount is saved as _tipping_amount on the order.

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.

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.

  • 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, tip recipients, tip reports and post-purchase tipping. See Configuration for the hooks Pro builds on.

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.

  • Round-up tip, a store rule, not a shopper button: when you turn it on, the tip a shopper picks is raised so the items subtotal plus the tip lands on the next whole amount (or the currency multiple you set, such as 5), via RoundUp and the tipping/fee_amount filter. "No tip" stays zero.
  • 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 via TipGoalBar and TipGoalProgress.
  • Tip recipients, the shopper picks one cause or recipient for their tip from a dropdown via RecipientSplitting and free hooks tipping/recipients and tipping/control_before_options.
  • Tip reports, break down tips from paid orders (Processing and Completed) by period, preset and recipient with CSV export via TipReports under 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.
Screen Purpose
WooCommerce > Dankon Tips Free tip presets, label and description; PRO Round-up tipping (Pro), Tip goal progress (Pro), Tip recipients (Pro) and Post-purchase tipping (Pro) sections.
WooCommerce > Tip Reports PRO totals by period, preset and recipient with CSV export.
  • 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
  • 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.

FeatureFreePRO
Preset amountsYesYes
No tip by defaultYesYes
Native feeYesYes
Live totalsYesYes
Accessible controlYesYes
Round-up tip-Yes
Tip goal progress bar-Yes
Tip recipients-Yes
Tip reports-Yes
Post-purchase tipping-Yes