• Resolved Tej Prakash

    (@prakashdrupal)


    I have below requirement:
    When user registers on my platforms, I want to add 250 wallet points in his/her account. And that point can be redeemed max 50 points in an order. So for using complete 250 wallet points at least 5 different order is need wallet pointed.
    Please Revert my email id [email protected] so as a possible

    Thanks!

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

    (@subratamal)

    Use below code in theme function.php file.

    add_filter('is_valid_payment_through_wallet', '__return_false');
    add_filter('woo_wallet_partial_payment_amount', 'woo_wallet_partial_payment_amount_callback', 10);
    
    function woo_wallet_partial_payment_amount_callback($amount) {
        if (sizeof(wc()->cart->get_cart()) > 0) {
            $cart_total = get_woowallet_cart_total();
            $partial_payment_amount = ($cart_total * 25) / 100;
            if ($amount >= $partial_payment_amount) {
                $amount = $partial_payment_amount;
            }
        }
        return $amount;
    }

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘wallet points’ is closed to new replies.