• Resolved theccx

    (@theccx)


    I’ve been using -10 percent charge for top-up to award users with 10% extra credit for using wallet.
    Now it’s not possible to use a negative value, why?

    The message I get: “Please select value that is no less than 0”

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

    (@subratamal)

    Hi @theccx,

    In new plugin update, we have restricted gateway charge field non-negative. But don’t worry you can achieve the same functionality by using below code snippet to active theme function.php file.

    add_filter('woo_wallet_credit_purchase_amount', 'woo_wallet_credit_purchase_amount_callback');
    
    function woo_wallet_credit_purchase_amount_callback($recharge_amount) {
        return $recharge_amount + (($recharge_amount * 10) / 100);
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Negative charge for top-up’ is closed to new replies.