TL;DR
Only completed orders are counted in the progress bar and leaderboard to ensure accuracy and consistency. Changing this behavior would require significant modifications to SQL queries, event handlers, and other logic.
Explanation
When using Donation Platform for WooCommerce, only completed donations/orders are included in the progress bar and leaderboard. This is a strategic decision to ensure that only verified and finalized transactions contribute to the displayed metrics. Including pending or processing orders could lead to inaccurate reporting and potential discrepancies.
If you wish to modify this behavior, be aware that it would require considerable effort. The system is designed to exclusively consider completed orders in multiple areas, including:
- SQL queries that fetch relevant donation data
- Event handlers that update the progress bar and leaderboard
- Other internal mechanisms that track donation status
Since these components are deeply integrated, modifying them would involve extensive changes to the plugin’s logic.
If you have a specific use case that requires pending or processing orders to be included, you may consider developing a custom extension or modifying the plugin’s source code, but this should be done with caution to maintain data integrity.