Giter Club home page Giter Club logo

Comments (6)

jonas-hoebenreich avatar jonas-hoebenreich commented on June 15, 2024

Hi Cerexus,
thanks for reaching out.
Apparently the problem was introduced in the latest version of the WooCommerce PayPal plugin.
I'm currently investigating the issue, trying to find a solution and will hopefully release a fix in the next version.
Best, Jonas

from wc-donation-platform.

jonas-hoebenreich avatar jonas-hoebenreich commented on June 15, 2024

woocommerce/woocommerce-paypal-payments#499

from wc-donation-platform.

jonas-hoebenreich avatar jonas-hoebenreich commented on June 15, 2024

It looks like the following code should solve the problem. I recommend you add it with code snippets. I look forward to your feedback on whether it works for you:

add_filter('woocommerce_cart_get_cart_contents_total', function($total) {
	if ($total == 0) {
		return 1;
	}
	return $total;
});

I will add the fix in the next update.

from wc-donation-platform.

Cerexus avatar Cerexus commented on June 15, 2024

Thanks for your very fast help! It works perfectly with your snippet! :)

I have another question to you. Maybe its not the right place, but however..
Is it somehow possible to create Donation 5 for 5$, Donation 10 for 10$ and Donation X for any value? (3 different products)

I really need to have different "products" for different values bc some other plugins only work in that way. I tested a bit, but i really dont get it like that..

Thank you for helping!

from wc-donation-platform.

jonas-hoebenreich avatar jonas-hoebenreich commented on June 15, 2024

I'm afraid I don't quite understand what you're trying to achieve. Do you mean that the minimum/maximum amount for a donation should be different for each product? Or that the suggested amounts should be different? Or should a product have a fixed price that the supporter cannot adjust?

from wc-donation-platform.

jonas-hoebenreich avatar jonas-hoebenreich commented on June 15, 2024

fixed in https://github.com/jonas-hoebenreich/wc-donation-platform/releases/tag/v1.2.4

from wc-donation-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.