I have the same problem in my website https://gheestore.in It is adding the discount instead of discounting. This is an urgent issue that needs to be fixed.
Thread Starter
—
(@educationguideonline)
Hi dev? Please look into the matter.
Either solve this option or give us a option to disable COD when customer choose Wallet payment option. Please reply .
Hi @educationguideonline, @harim,
Sorry for the delayed response. In the current version, we are added the partial payment amount with order total because of refund issue. If order canceled then admin have no option to refund partial payment amount to the customer wallet. That’s why we are added the partial payment amount with order total. But you can bypass this by applying bellow patch to theme function.php file. We are still trying to enhance this process.
add_action('woo_wallet_partial_payment_completed', 'woo_wallet_partial_payment_completed_callback', 10, 2);
if (!function_exists('woo_wallet_partial_payment_completed_callback')) {
function woo_wallet_partial_payment_completed_callback($transaction_id, $order) {
$partial_payment_amount = get_order_partial_payment_amount($order->get_id());
$order_total = $order->get_total('edit');
$order->set_total($order_total - $partial_payment_amount);
$order->save();
}
}
Thread Starter
—
(@educationguideonline)
Can I disable Cash on Delivery option when customer select Wallet payment option? If you please provide me the code for this, it will be very helpful to me.
Thread Starter
—
(@educationguideonline)
Waiting for your reply sir.
@educationguideonline,
We have tried this previously but not possible because WooCommerce not refreshing cart fragments while choosing payment method.