Title: Add Donation to Cart
Author: YouBeHero
Published: <strong>October 20, 2025</strong>
Last modified: January 30, 2026

---

Search plugins

![](https://ps.w.org/youbehero/assets/banner-772x250.jpg?rev=3381905)

![](https://ps.w.org/youbehero/assets/icon-256x256.png?rev=3381348)

# Add Donation to Cart

 By [YouBeHero](https://profiles.wordpress.org/youbehero/)

[Download](https://downloads.wordpress.org/plugin/youbehero.1.3.5.zip)

 * [Details](https://frp.wordpress.org/plugins/youbehero/#description)
 * [Reviews](https://frp.wordpress.org/plugins/youbehero/#reviews)
 *  [Installation](https://frp.wordpress.org/plugins/youbehero/#installation)
 * [Development](https://frp.wordpress.org/plugins/youbehero/#developers)

 [Support](https://wordpress.org/support/plugin/youbehero/)

## Description

**Add Donation to Cart** by YouBeHero adds a donation widget to your WooCommerce
checkout, allowing customers to support nonprofit organizations during purchase.
The widget is optional and seamlessly integrates without disrupting the checkout
flow.

**Benefits:**
 * Increase customer loyalty and conversions * Differentiate your 
brand as socially responsible * Build trust through transparent impact reporting

Currently available for Greek e-commerce stores with English locale support.

**Key Features:**
 * Seamless checkout integration featuring configurable positioning
options * Comprehensive integration with Gutenberg blocks, Elementor widgets, WP
Bakery, and shortcode support * Administrative dashboard providing real-time statistics
and comprehensive transaction history * Extensive styling and appearance customization
capabilities * Support for multiple nonprofit organizations (up to 7 organizations)*
Thank you page widget functionality and email integration capabilities * Translation-
ready with support for Greek and English languages

### Video tutorials

Step-by-step video guides (in Greek) to get you started:

**Installation guide** – How to install and configure the Add Donation to Cart plugin
on your WordPress store

**Gutenberg** – How to add the donation widget to checkout using the Gutenberg block
editor

**Elementor** – How to add the donation widget to checkout using Elementor editor

### Shortcodes

**Donation Form:**
 * `[youbehero_donation_form]` – Main donation form widget

**Statistics:**
 * `[total-donations]` – Total amount of donations (formatted with
currency) * `[total-number-of-donations]` – Total number of donations made * `[total-
number-supported-non-profits]` – Number of supported organizations

Works with Elementor, WP Bakery, Gutenberg, and any theme that supports shortcodes.

### Admin Dashboard

The dashboard provides:
 * Account management (API key, status, balance) * Statistics(
total donations, sales, average cart value, order count, supported organizations)*
Transaction history with links to WooCommerce orders * Widget configuration (positioning,
styling, organizations, donation amounts)

### External Services

**Privacy and Data Handling**

This plugin integrates with the YouBeHero platform. The following data is shared:
*
API key, order ID, purchase amount, donation amount, selected organization

**Why:** To process donations, display widgets, and provide analytics. No payment
details are shared. All data transmitted via HTTPS.

**Callback URL:** YouBeHero may redirect administrators to automatically configure
API tokens. Only administrators can access, and tokens are sanitized before storage.

External service: **YouBeHero**
 * Website: [https://youbehero.com](https://youbehero.com)*
Terms: [https://youbehero.com/gr/termsbusiness](https://youbehero.com/gr/termsbusiness)*
Privacy: [https://youbehero.com/gr/privacy](https://youbehero.com/gr/privacy)

### Contributing

Open source contributions welcome! Submit pull requests at [https://github.com/YouBeHero/YBH-WP-Plugin](https://github.com/YouBeHero/YBH-WP-Plugin)

## Screenshots

 * [[
 * WooCommerce checkout page Support a cause with your order
 * [[
 * Add Donation to Cart dashboard showing donation statistics
 * [[
 * YouBeHero dashboard showing API key and statistics
 * [[
 * Donation widget style configuration page
 * [[
 * Seamless integration on WP Bakery checkout
 * [[
 * Post purchase thank you page widget
 * [[
 * Email donation widget to inspire
 * [[
 * Donations feed at the Angels of Joy’s page @YouBeHero

## Blocks

This plugin provides 1 block.

 *   YouBeHero Donation Widget A block for adding a donation widget to the checkout
   page.

## Installation

 1. Install the plugin from WordPress plugins dashboard
 2. Create an account at [YouBeHero](https://youbehero.com/gr/signup-eshop)
 3. Copy your API key and paste it in **YouBeHero** settings in WordPress admin
 4. Add the donation widget using:
 5.  * Gutenberg block: “YouBeHero Donation Widget”
     * Elementor: “YouBeHero Donation Widget” widget
     * WP Bakery: Drag and drop the donation widget
     * Shortcode: `[youbehero_donation_form]`

## FAQ

### Does this plugin require WooCommerce?

Yes, WooCommerce must be installed and active.

### Can customers choose the donation amount?

Yes, store managers configure preset amounts and customers can select or enter custom
amounts.

### Does this plugin support multiple organizations?

Yes, select up to 7 nonprofit organizations. Customers choose which cause to support.

### Which nonprofit organizations can I choose from?

Over 150 verified organizations across Greece in three categories: Animal welfare,
Human-centered, and Environmental. Browse at [https://youbehero.com/gr/cause-categories](https://youbehero.com/gr/cause-categories)

### What page builders are supported?

Elementor, WP Bakery, Gutenberg blocks, and any theme that supports shortcodes.

### Can I customize the appearance?

Yes, full control over colors, borders, spacing, fonts, and layout through admin
settings.

### How do I track donations?

The admin dashboard shows total donations, sales, average cart value, order count,
and supported organizations.

### What are the pricing and costs?

 * Free for first use (prepaid donations)
 * 0.07€ (including VAT) per donation after initial period
 * No setup fees or monthly subscriptions

### What technical support is available?

Email support, WordPress plugin forum, and help center at [help.youbehero.com](https://help.youbehero.com/)

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Add Donation to Cart” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ YouBeHero ](https://profiles.wordpress.org/youbehero/)
 *   [ Miqbal ](https://profiles.wordpress.org/deviqbal/)

[Translate “Add Donation to Cart” into your language.](https://translate.wordpress.org/projects/wp-plugins/youbehero)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/youbehero/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/youbehero/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/youbehero/) by [RSS](https://plugins.trac.wordpress.org/log/youbehero/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.5

 * Fixed cart totals not updating when only changing donation organization after
   page refresh (Gutenberg, Elementor, WPBakery)
 * Pre-populate donation amount hidden input from session so org-only change triggers
   fee update

#### 1.3.4

 * Removed unused images (admin and public) and unused partials to reduce plugin
   size
 * Removed unused i18n class and commented-out code in admin JS and email widget

#### 1.3.3

 * Updated installation guide UI with action-required badge
 * Changed roundup donation calculation to use grand total (includes shipping and
   fees)
 * Added dynamic CTA text support from JSON for Greek language
 * Added Greek translation for “One more step” badge

#### 1.3.2

 * Fixed missing Greek translations for dashboard statistics
 * Added translation strings for “Update”, “Total donations”, “Total sales”, “Average
   cart value”, “Number of orders”, and “Supported NGOs”

#### 1.3.0

 * Added floating hearts animation on donation amount button clicks
 * Improved button z-index layering for better visual hierarchy
 * Added translation support for “Change” text in organization dropdown
 * Enhanced heart animations with white borders and increased size

#### 1.1.1

 * Fix hidden files problem (.DS_Store).

#### 1.1.0

 * Fixed inline styles issue
 * Clarified third-party service usage
 * Standardized slugs to match text domain
 * Improved widget security

#### 1.3.1

 * Refactored editor detection code for better maintainability
 * Improved widget detection to support shortcode in all editors (Elementor, WPBakery,
   Gutenberg)
 * Enhanced WPBakery raw HTML widget support for shortcode detection
 * Added clickable avatar with link to eshop info page
 * Added translation string for “Change eshop avatar”

#### 1.0.1

 * Fix translation problems.

#### 1.0.0

 * Initial release with donation option in WooCommerce checkout, widgets, shortcodes,
   dashboard statistics, and API integration.

## Meta

 *  Version **1.3.5**
 *  Last updated **2 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.7 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/youbehero/)
 * Tags
 * [checkout](https://frp.wordpress.org/plugins/tags/checkout/)[donations](https://frp.wordpress.org/plugins/tags/donations/)
   [fundraising](https://frp.wordpress.org/plugins/tags/fundraising/)[nonprofit](https://frp.wordpress.org/plugins/tags/nonprofit/)
   [woocommerce](https://frp.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://frp.wordpress.org/plugins/youbehero/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/youbehero/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/youbehero/reviews/)

## Contributors

 *   [ YouBeHero ](https://profiles.wordpress.org/youbehero/)
 *   [ Miqbal ](https://profiles.wordpress.org/deviqbal/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/youbehero/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://youbehero.com/)