Add Donation to Cart by YouBeHero is a powerful WordPress plugin that adds a donation widget to your WooCommerce checkout, transforming every purchase into an opportunity for social impact. By allowing customers to support nonprofit organizations during checkout, you create a more meaningful shopping experience that builds loyalty, differentiates your brand and boosts key business metrics.
Why add donations to checkout?
– Increase customer loyalty – Customers feel good about supporting causes they care about
– Differentiate your brand – Stand out as a socially responsible business
– Boost conversions – The 「warm glow effect」 increases checkout completion rates
– Build trust – Transparent impact reporting creates customer confidence
The plugin seamlessly integrates with your existing checkout flow without disrupting the customer experience. The donation widget is discreet and optional – customers can easily skip it if they prefer, ensuring your checkout process remains smooth and conversion-friendly. No changes to your payment processing are required. With dynamic widgets, shortcodes, and API-powered configurations, YouBeHero ensures a customizable and smooth donation process. Store owners can manage supported organizations, track donations and display impact statistics directly in their WordPress dashboard.
Although currently only available for Greek e-commerce stores, Add Donation to Cart supports English locales.
Features
- Checkout Integration: Add donation widget to WooCommerce checkout page with multiple positioning options
- Flexible Positioning: Choose from 4 different checkout positions (before form, after billing, before notes, after payment)
- Multiple Display Options: Widgets, blocks, shortcodes, and Elementor integration for maximum flexibility
- Shortcodes Available:
[youbehero_donation_form]– Main donation form
- Page Builder Support: Native Elementor widget and WP Bakery integration
- Gutenberg Block: Custom 「YouBeHero Donation Widget」 block for checkout pages
- Thank You Page Widget: Post-purchase confirmation widget with customizable styling
- Email Integration: Donation widgets in WooCommerce order emails
- Dynamic Configuration: API-powered settings for organizations and donation amounts
- Customizable Styling: Full control over colors, borders, spacing, and appearance
- Multi-language Support: Translation-ready with Greek and English language files
- Admin Dashboard: Comprehensive statistics and analytics dashboard
- Real-time Statistics: Track total donations, sales, average cart value, order count, and supported nonprofit organizations
- Account Management: Balance tracking and account status monitoring
- Transaction History: Detailed transaction table with order tracking
- API Integration: Secure connection to YouBeHero platform for data management
- WooCommerce Hooks: Deep integration with WooCommerce order processing
- Session Management: Persistent donation data across checkout process
- Fee Integration: Seamless addition of donation fees to WooCommerce orders
- Responsive Design: Mobile-friendly donation forms and widgets
Shortcodes
The plugin provides several shortcodes for displaying donation forms:
Main Donation Form:
– [youbehero_donation_form] – Displays the main donation form widget
– [ybhd_donation_form] – Alternative shortcode for the same functionality
Usage Examples:
– Add to any page or post: [youbehero_donation_form]
– Use in page builders: Works with Elementor, WP Bakery and Gutenberg
Admin Dashboard
The YouBeHero admin dashboard provides comprehensive management and analytics:
Account Management:
– API key configuration and validation
– Account status monitoring
– Balance tracking and top-up options
– Direct links to YouBeHero platform settings
Statistics & Analytics:
– Total donations collected
– Total sales value
– Average cart value
– Number of orders processed
– Count of supported nonprofit organizations
– Real-time data refresh
Transaction Management:
– Detailed transaction history table
– Order tracking and donation details
– Export capabilities for reporting
– Search and filter options
Widget Configuration:
– Checkout form positioning options
– Styling and appearance settings
– Organization selection and management
– Donation amount presets
Integration Settings:
– WooCommerce hook configuration
– Email widget settings
– Thank you page customization
– Multi-language support
External services
Privacy and data handling
This plugin integrates your WooCommerce store with the YouBeHero platform to facilitate charitable donations and related features.
Below is an overview of what data is shared and why.
Data shared with YouBeHero
When using this plugin, the following information is transmitted to YouBeHero』s servers:
- API key: Used to securely connect your store to your YouBeHero account to record and track donations
- WooCommerce order ID: For accurate donation-to-order association and tracking
- Purchase amount: The total cart value for transaction recording and donation integration
- Donation amount: The exact donated sum to ensure correct processing and allocation to the designated charity
- Selected organization: To determine the destination of the donation
Why this data is collected?
This data is necessary to:
- Register and authenticate your store with YouBeHero
- Process and record donations made through your checkout
- Display donation widgets and campaign information to shoppers
- Provide donation reporting and analytics within your WordPress admin
Important notes
- No payment details are sent to YouBeHero
- Only donation metadata and order references are shared
- All data is transmitted securely via HTTPS
Callback URL handling:
The YouBeHero service may redirect administrators to a callback URL inside the WordPress admin (e.g., wp-admin/admin.php?page=ybhd-settings&api_token=xxxxx). This URL automatically configures the API token. Only users with administrator permissions can access this page, and the token is sanitized before storage. Since this request originates from a trusted external service, a WordPress nonce cannot be applied.
External service: YouBeHero
– Website: https://dev.youbehero.com
– Terms of Service: https://dev.youbehero.com/gr/termsbusiness
– Privacy Policy: https://dev.youbehero.com/gr/privacy
Contributing
This plugin is open source and we welcome contributions from the community! If you have ideas for improvements, bug fixes, or new features, please feel free to submit pull requests on GitHub at https://github.com/YouBeHero/YBH-WP-Plugin.
Your contributions help make this plugin better for everyone.






