• Resolved andr3w1

    (@andr3w1)


    Hello!

    I have many products that are for 1€ or 2€. Is there possibility to set minimur order value to show Card/GPay/ApplePay method to pay?

    Thank you

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

Viewing 1 replies (of 1 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @andr3w1

    Yes, you can use the WooCommerce filter woocommerce_available_payment_gateways along with any custom logic you need to filter payment methods.

    Example (not tested):

    add_filter('woocommerce_available_payment_gateways', function($gateways){
        if(is_checkout() && WC()->cart){
            if(WC()->cart->get_total('price') < 1){
                unset($gateways['stripe_applepay']);
                unset($gateways['stripe_googlepay']);
            }
        }
        return $gateways;
    });

    Kind Regards

Viewing 1 replies (of 1 total)

The topic ‘Minimum order value to show payment method’ is closed to new replies.