Donation Being Auto-Added to Cart

TL;DR: If your donation product is being automatically added to the cart when visiting a page with a donation form, it’s likely because the form has a predefined donation amount. You can prevent this by either adjusting the product price or switching to a different form style.

Why Is the Donation Automatically Added?

When using Donation Platform for WooCommerce, donation forms with a predefined donation amount (e.g. $5) will automatically submit and add the donation product to the cart as soon as the form is loaded. This is intentional and designed to streamline the donation process.

This behavior occurs on any page that contains a donation form. So even after removing the donation from the cart, revisiting a page with the same donation form will trigger the product to be added again.

How to Prevent the Donation from Being Auto-Added

You have two main options to stop this behavior:

1. Set the Product Price Lower Than the Minimum Donation Amount

To disable the auto-submission, set your donation product’s price to something below your form’s minimum donation amount (e.g. set the product price to $0.99 when the minimum donation amount is $1). This prevents the form from auto-submitting, since the predefined amount won’t match a valid product price.

Steps:

  1. Go to Products in your WordPress admin
  2. Edit your donation product
  3. Set the Regular price to an amount lower than your minimum donation (e.g. $0.99)
  4. Save changes

2. Switch to Donation Form Style 4

Form style 4 is designed to not auto-submit only submits when users proceed to checkout manually.

Steps:

  1. Edit the donation form Shortcode or Gutenberg Block
  2. Set the “style” attribute to 4
  3. Save changes

Summary

The donation form auto-adds a product to the cart if a predefined amount is set and the product price matches. To prevent this, either:

  • Set the product price lower than the minimum donation amount (e.g. $0.99 when minimum is $1), or
  • Use form style 4 to disable auto-submission completely

This way, donations only appear in the cart when the user actively chooses to donate.