ehoty
Forum Replies Created
-
Forum: Plugins
In reply to: [Wallet for WooCommerce] Change cashback word to commissionIs it possible to show available wallet balance on the checkout page?
Forum: Plugins
In reply to: [Wallet for WooCommerce] Plugin still supported?Please help! @subratamal
I want to disable customers from using wallet balance when they ordering cashback products.
Is it possible?- This reply was modified 3 years, 11 months ago by ehoty.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Disable using wallet balance for cashback productsPlease Help Me, Sir. I don’t have the method to fulfill your requirement.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Disable using wallet balance for cashback productsThanks for your reply. I already sent a mail regarding this issue. Hope it will be solved soon.
Please help!
I want to disable customers from using wallet balance when they ordering cashback products.
Is it possible?Please help!
I want to disable customers from using wallet balance when they ordering cashback products.
Is it possible?You need to enable “Auto deduct wallet balance for partial payment” from tera wallet setting. It’s working for woocomerce Version 4.4.1
Write this code to your function.php or use the Code Snippets plugin to do that.
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 * 30) / 100;
if ($amount >= $partial_payment_amount) {
$amount = $partial_payment_amount;
}
}
return $amount;
}- This reply was modified 4 years ago by ehoty.
Forum: Plugins
In reply to: [Wallet for WooCommerce] restrict the uses of wallet balance at checkoutI want to disable deducting balance from the wallet, for the cashback product.
Is it possible?Forum: Plugins
In reply to: [Wallet for WooCommerce] Issue with payment gateway feeI want to disable deducting balance from the wallet, for the cashback product.
Is it possible?Forum: Plugins
In reply to: [Wallet for WooCommerce] Cashback Amount On Cart and Checkout pageI want to disable deducting balance from the wallet, for the cashback product.
Is it possible?I want to disable deducting balance from the wallet, for the cashback product.
Is it possible?I want to disable deducting balance from the wallet, for the cashback product.
Is it possible?Forum: Plugins
In reply to: [Wallet for WooCommerce] How to limit Woocommerce wallet setting?Finally, I found a code that works for me perfectly. But Some change needed. Can anyone change the code, please? In this code the 20% debited amount calculate from the total cart amount, but I want the 20% debited amount calculated from the total wallet amount.
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 * 20) / 100;
if ($amount >= $partial_payment_amount) {
$amount = $partial_payment_amount;
}
}
return $amount;
}Forum: Plugins
In reply to: [Wallet for WooCommerce] How to limit Woocommerce wallet setting?I already use this code but the problem is when the maximum amount of debit amount is bigger than the cart price, it won’t work. Ex: The product price is $10 but customer have $5000 in wallet.I limit the 20% of amount to deduct from wallet, Then it shows $1000 deducated from wallet but the product price is only $10.
For better understanding see the screenshot. Image: https://ibb.co/FJPNTp2
Please help me.add_filter(‘is_valid_payment_through_wallet’, ‘__return_false’);
add_filter(‘woo_wallet_partial_payment_amount’, ‘woo_wallet_partial_payment_amount_callback’);
function woo_wallet_partial_payment_amount_callback($amount){
return (woo_wallet()->wallet->get_wallet_balance( get_current_user_id(), ‘edit’ ) * 20) / 100;
}