Add Previous Donations to the Progress Bar

TL;DR:
If you’re migrating from a different donation plugin or platform, you can add previous donations to the progress bar in three ways: using the cheat parameter in shortcodes or by manually adding orders in WooCommerce.

When switching to Donation Platform for WooCommerce from another donation solution, you may want your progress bar and order count to reflect previous donations. Here’s how you can achieve that:

1. Use the cheat Parameter in [wcdp_progress] Shortcode

The [wcdp_progress] shortcode supports a cheat parameter, which lets you add a fixed amount (in your store’s currency) to the progress bar. This is a simple way to visually include past donations without modifying WooCommerce data.

Example:

[wcdp_progress id="123" cheat="2500"]

In this example, an additional 2,500 will be added to the progress display, regardless of actual orders.

2. Manually Add Orders to WooCommerce

You can manually create WooCommerce orders in your WordPress admin dashboard to reflect previous donations:

  1. Go to WooCommerce → Orders.
  2. Click Add Order.
  3. Add a donation product and set the desired amount.
  4. Mark the order status as Completed.

Completed orders will automatically be included in the progress bar and order count.

3. Use the cheat Parameter in [wcdp_order_counter] Shortcode

If you’re also displaying the number of donations using the [wcdp_order_counter] shortcode, you can use the cheat parameter to increase the count.

Example:

[wcdp_order_counter id="123" cheat="51"]

This will add 51 to the actual number of completed orders.