Show only donations on certificate, not products, from combined carts

[ad_1]

Hi,
First, thank you very much for this fantastic plugin!
The shop has products (goodies) and donations. We need to issue a donation certificate for donations only. When the user puts a product in the cart, then a donation, the product is removed from the cart. That’s fine. But the user cann add a product to the cart after choosing a donation. Then the shop issues a donation certificate for the products and the donation combined. This is wrong.
Is there a way to allow only certain categories (donations) to sum up in the certificate?
The only solution we found is https://projectdmc.org/support/topic/exclude-specific-product-categories-from-invoices/ . By setting $not_allowed_cats to all other categories, we can avoid the sending of a donation certificate for products. But this also means that no donation certificates are generated in case of combined carts.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer