DOCS

Checkout Button

PRO block. A WooCommerce-based donation call-to-action button. Block ID: get-fund/checkout-button.

Checkout button example

Why use this

When your site processes donations through WooCommerce, this button links donors directly to the checkout page with the current action pre-loaded as the donation context.

What it does

The block generates a link to the configured WooCommerce checkout page, appending ?fund_action={post_id}. The checkout page ID is read from the get_fund_fundations_checkout_page_id setting, or overridden per block with the checkoutPageUrl attribute. If Fundations Pro is not active, administrators see a license notice instead of the button.

Requirements

  • Active Fundations Pro license
  • WooCommerce installed and active

How to use it

  1. Configure the checkout page in Settings > Fundations Pro > WooCommerce.
  2. Add the Checkout Button block to the action page template.
  3. Customise button text, style, and colors in the inspector.
  4. Leave Checkout Page URL blank to use the setting; override it only for special cases.

Settings and options

OptionTypeDefaultDescription
Button textstringDonate NowButton label
Checkout page URLstringOverride the settings-based checkout page URL
Button sizestringmediumsmall, medium, or large
Alignmentstringleftleft, center, or right
Full widthbooleanfalseStretch button to full container width
Border radiusnumberButton corner rounding
Is outlinebooleanfalseOutline button style
Border thicknessnumber2Outline border thickness
Border colorstringOutline border color
Button colorstringFilled button background
Button text colorstringFilled button text
Button hover colorstringFilled button hover background

What you can and cannot do

  • This block requires both Fundations Pro and WooCommerce. Without either, it renders a notice for administrators and nothing for regular visitors.
  • The donation is processed through WooCommerce, not the standard Fundations donation form.

Troubleshooting

Button goes to a 404: The checkout page ID is not configured or the page does not exist. Check Settings > Fundations Pro > WooCommerce.

Admins see a license notice: Fundations Pro is not active or the license is not validated. Check the license status in Settings > Fundations Pro > License.