• Resolved Envox d.o.o.

    (@envox)


    Hello, I found in your Knowledge Base that is possible to use WooCommerce PDF Invoices & Packing Slips to generate Donation receipts. It says:

    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.

    I’m using DIVI theme and cannot find woocommerce/pdf folder. Does it mean that I have to create it manually or in case of DIVI theme something else is needed?

    Another thing that confuses me: if I have other items in the WooCommerce cart that need an Invoice, does that mean that both Invoice and Donation receipts will somehow be generated when completing the purchase?

    Thanks once again in advance for the quick response.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi envox,

    thanks for reaching out.
    Yes, you have to create that folder if it does not yet exist. You can find the detailed documentation here: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/creating-a-custom-pdf-template/
    ⚠️ Warning: It is currently not possible to use invoices, packing slips, donation receipts, and thank-you certificates simultaneously. Additionally, using donation receipts and thank-you certificates in web stores that also sell regular products is neither recommended nor supported.

    Best,
    Jonas

    Thread Starter Envox d.o.o.

    (@envox)

    Many thanks for the quick reply! I’m a little confused with the warning: why mixing regular products and donations is not recommended? Do you see technical or legal issues in that?

    I’m slowly realizing that generating two types of documents in the case where there is both a regular product and a donation in the cart would be complex, but what if something like that could be prohibited, and in the case where there is only a donation in the cart, a different type of order could be generated that would create a different type of order. Then a different output document could be generated for that type of order (i.e. a donation receipt instead of a commercial invoice). I’m just thinking.

    Question (I believe I can ask this here): is there a way to donate to your plugin?

    Plugin Author Jonas

    (@flinnn)

    Hi,

    Thanks for your response!

    I understand that the current implementation has limitations and may not cover all use cases perfectly. Mixing regular products and donations introduces complexities when it comes to document generation. While your idea is interesting, implementing such a system would require significant changes, and unfortunately, it’s not something I can prioritize in the near future.

    That said, since this is an open-source project, contributions are always welcome! If you’d like to explore this further, feel free to check out the repository: https://github.com/wc-donation/wc-donation-platform/

    Best,
    Jonas

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.