How it works
A donation is an ordinary WooCommerce product whose price the shopper chooses. It goes into the cart, is paid at checkout and is recorded on the order like any other line.
From amount to order
- The shopper chooses an amount
In the donation box, on the Donate page or on a donation product page. The amount is checked against your amount rules in the browser and again on the server.
- The donation is added to the cart
As a line for the donation product, priced at the chosen amount. Each donation product appears once: adding again replaces the amount.
- The shopper pays at checkout
Coupons never discount donation products. The product created for you is not taxable.
- The order records it
The order line is marked as a donation and shows a small Donation label on the admin order screen. With Pro, paid orders add to the campaign totals.
Where donations can be made
| Place | Shows | Page |
|---|---|---|
| Cart | The donation box, when Show on the cart is on | Cart |
| Checkout | The donation box, when Show on the checkout is on | Checkout |
| Donate page and any page with the shortcode | The donation form, with its own title and text | Donate page & shortcode |
| Donation product page | The amount picker above the add to cart button | Product page |
| Chosen product pages Pro | The donation form below add to cart or the summary | Product page box |
The box and the shortcode add to the product chosen under Donation product (Automatic: the "Donation" product). The shortcode can name another one with product_id.
Updating without a reload
On the classic cart and checkout and on the Donate page, the box sends the donation in the background and refreshes the cart totals, the checkout review and mini carts. With the Cart and Checkout blocks, it updates the block's cart through WooCommerce's Store API. Once a donation is in the cart, the button reads Update donation and a line shows "Your donation: $10" with a Remove button. Without JavaScript, the cart box and the Donate page form still work as normal forms.
Accessibility
- Amounts are real radio buttons in a labelled group; the custom amount has a visible label and hint.
- Errors and success messages are announced to screen readers.
- Every control works with the keyboard and has a visible focus ring; touch targets are at least 44px.
- The default colors meet WCAG 2.2 AA contrast.
- On small screens, amounts wrap two per row and the button goes full width.
Performance & privacy
The small stylesheet and dependency-free script load only on the cart, the checkout (not the order received page), donation product pages and wherever the box or shortcode renders. There is no tracking, no telemetry, no remote assets and no request to external services. (Pro checks its license with siteryn.com from wp-admin; see License checks.)
Languages
Translation ready. With WPML or Polylang, the text settings are translatable, the Donation flag is copied to product translations, stored product IDs resolve to the shopper's language, and the box answers in the language of the page it is on. Pro's thank-you email follows the order's language.