@reschix we think you have not enabled wallet payment gateway from WooCommerce> settings > payment tab. Please check and let us know.
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.
@reschix yes that is not possible because wallet partial payment will be activated if wallet balance is low.
Is there a way to enable the Auto-Deduct Feature even if the wallet funds are sufficient?
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;
}