• Resolved reschix

    (@reschix)


    Hello,

    I have installed your plugin and like it very much!

    Would it be possible to enable Auto deduct not only for partial payments (if wallet balance < cart total), but also for full payments (if wallet balance >= cart total). I would love to have the amount subtracted and just show “0,00” as total in the cart already.

    Thank you!
    Best regards,
    Lukas

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

    (@subratamal)

    @reschix we think you have not enabled wallet payment gateway from WooCommerce> settings > payment tab. Please check and let us know.

    Thread Starter reschix

    (@reschix)

    If I enable that it only gives me the option to pay by wallet at check-out. Still there is no auto-deduction in my cart and no auto deduction at check-out for wallet balances that would cover the whole cart total.

    Plugin Author Subrata Mal

    (@subratamal)

    @reschix yes that is not possible because wallet partial payment will be activated if wallet balance is low.

    Thread Starter reschix

    (@reschix)

    Is there a way to enable the Auto-Deduct Feature even if the wallet funds are sufficient?

    Plugin Author Subrata Mal

    (@subratamal)

    Yes it is possible but for that we have to do some custom code. Please reach out to us at our support email [email protected] regarding this.

    add this code in the function.php file and try it

    //disable_payment_methods if enough balance in wallet
    add_filter(‘woocommerce_available_payment_gateways’,’disable_payment_methods’);
    function disable_payment_methods( $available_gateways ) {
    global $woocommerce;
    if ( !is_admin() ) {
    if(isset($available_gateways[‘wallet’])) {
    foreach ($available_gateways as $key => $value) {
    if($key != ‘wallet’) {
    unset($available_gateways[$key]);
    }
    }
    }
    }
    return $available_gateways;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Auto deduct FULL payment’ is closed to new replies.