Title: Add Donation to Cart
Author: YouBeHero
Published: <strong>20 ຕຸລາ 2025</strong>
Last modified: 17 ເມສາ 2026

---

ຄົ້ນຫາປລັກອິນ

![](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

 ໂດຍ [YouBeHero](https://profiles.wordpress.org/youbehero/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/youbehero.1.3.8.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/youbehero/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/youbehero/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/youbehero/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/youbehero/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/youbehero/)

## ຄຳອະທິບາຍ

**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)

## ພາບໜ້າຈໍ

 * [[
 * 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

## ບລັອກ

ປລັກອິນນີ້ມີ 1 ບລັອກ.

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

## ການຕິດຕັ້ງ

 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]`

## ຄຳຖາມທີ່ພົບເລື້ອຍ

### 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/)

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Add Donation to Cart” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “Add Donation to Cart” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/youbehero)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/youbehero/), ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/youbehero/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/youbehero/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/youbehero/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.3.8

 * Define `YBHD_VERSION` from the main plugin file header via `get_file_data()` 
   so the PHP runtime version stays in sync with the single `Version:` line.
 * Enqueue public and admin CSS/JS using `wp_enqueue_*` version parameters only (
   no `?v=` in the URL with `false`), avoiding duplicate query args such as `?v=…&
   ver=…` from WordPress defaults.

#### 1.3.7

 * Fix checkout floating-hearts color: prefer `data-btnclr` and `--btn-color` over
   computed background so hearts match the configured button color instead of sometimes
   appearing white.
 * Tweak donation buttons layout and sizing (gap, flex behavior, delete button sizing,
   min-widths) and several modal/list spacing fixes to improve theme resilience 
   and narrow-viewport behavior.

#### 1.3.6

 * Add API call guard.
 * Update block manifests to apiVersion 3

#### 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)

 *  ເວີຊັນ **1.3.8**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **2 ມື້ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **ໜ້ອຍກວ່າ 10**
 *  ເວີຊັນ WordPress ** 5.7 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **6.9.4**
 *  ເວີຊັນ PHP ** 7.4 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/youbehero/)
 * ແທັກ
 * [checkout](https://lo.wordpress.org/plugins/tags/checkout/)[donations](https://lo.wordpress.org/plugins/tags/donations/)
   [fundraising](https://lo.wordpress.org/plugins/tags/fundraising/)[nonprofit](https://lo.wordpress.org/plugins/tags/nonprofit/)
   [woocommerce](https://lo.wordpress.org/plugins/tags/woocommerce/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/youbehero/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

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

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/youbehero/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/youbehero/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](https://youbehero.com/)