• Resolved acpaulley

    (@acpaulley)


    Is there a way to limit what product(s) the customer can spend his or her balance on? I’d like to use customer wallets as a way for them to earn add-ons to their purchases, like free promotional products for local schools, etc, when they buy the more expensive clothing and accessories for the same schools. But I want the customer to be able to “spend” their wallet on these items so they have a choice.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @acpaulley,

    You can do this by using woocommerce_available_payment_gateways filter to filter payment gateway. For more info please reach out to us at our support forum.

    can you be more specific how to use this filter and how to check specific category???

    function filter_woocommerce_available_payment_gateways( $available_gateways ) {
    // how to check the product specifi category here and remove the pay by wallet on that category???
    return $available_gateways;
    };

    // add the filter
    add_filter( ‘woocommerce_available_payment_gateways’, ‘filter_woocommerce_available_payment_gateways’, 10, 1 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit products users can spend their wallet balance on?’ is closed to new replies.