Donation Receipts

WooCommerce PDF Invoices & Packing Slips is a free and open source WordPress plugin you can use to send out your tax deductible receipts & thank you certificates.

In many countries, you have to issue donation receipts for donations to your organization. For this reason, Donation Platform for WooCommerce integrates with the free plugin WooCommerce PDF Invoices & Packing Slips. This makes it quick and easy to automatically generate donation receipts and send them to donors as PDFs.
The supplied template for a donation receipt looks like this: https://wcdp.jonh.eu/wp-content/uploads/2021/04/Example-Charity_105_2021-04-17.pdf

Note: Donation Platform for WooCommerse does not provide legal or accounting advice. Please consult with your legal or tax advisor to ensure that your donation receipts comply with the relevant provisions that apply to you.

Getting started

  1. Please install & activate WooCommerce PDF Invoices & Packing Slips: https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
  2. Navigate to the WooCommerce PDF Invoices & Packing Slips settings page
  3. Under “Choose a template” select “donation-receipt”. Now when you issue an invoice / donation receipt it will use the template of a tax deductible receipt shipped with Donation Platform for WooCommerce.
  4. In order to comply with the legal provisions that apply to you, you will probably have to adapt this template. You can adapt the template by using tools like Loco Translate or using a custom template.

Loco Translate

By using the free plugin Loco Translate you can adapt the strings in the tax deductible receipt and thank you certificate. This is an easy and comfortable way to customize the text in the templates although it does not allow you to change the basic structure of the templates.

Custom Template

Knowledge of HTML, PHP and possibly CSS is helpful for the following steps.
First you have to copy the folder “donation-receipt” from “/wc-donation-platform/includes/integrations/woocommerce-pdf-invoices-packing-slips/templates/donation-receipt” to “themes/yourtheme/woocommerce/pdf/your-template”. Use any name instead of “your-template”.
Under “Choose a template” you can now select your custom template.

Open “invoice.php” and “thank-you-certificate.php” in your IDE and start editing the template. WooCommerce PDF Invoices & Packing Slips uses dompdf (https://github.com/dompdf/dompdf) to convert the html into a PDF file. Regularly test whether everything is working, because adapting the template can quickly lead to errors. Please don’t get frustrated by the fact that not all CSS & HTML functions are supported by dompdf.