Top Up automatically – status to processing
-
Hello,
when i installed terawallet before, all wallet top up payments were automatically set to “processing” and the customer wallet is funded automatically.but one day i wanted the status to be “On Hold” instead on “processing” in order to control the orders and i added the code that you gave us before on the website using plugin named “code snippet”
But today i want to comeback to the previous action were wallet is funded automatycally and status become processing
and when i tried to disable the code , it doesn’r work beause the status is always “On Hold”please find here under the code i used that you gave to us
————
add_filter('woocommerce_payment_complete_order_status', 'woocommerce_payment_complete_order_status_callback', 10, 3); if (!function_exists('woocommerce_payment_complete_order_status_callback')) { function woocommerce_payment_complete_order_status_callback($status, $order_id, $order) { if (is_wallet_rechargeable_order($order)) { $status = 'on_hold'; } return $status; } }
The topic ‘Top Up automatically – status to processing’ is closed to new replies.