Created
March 11, 2020 06:12
-
-
Save iamsathyaseelan/4c3d53bd41b1290217ae55436c09a7fe to your computer and use it in GitHub Desktop.
changing the order status of the abandoned order to recover the order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('rnoc_abandoned_cart_order_status','rnoc_abandoned_cart_order_status',10,2); | |
function rnoc_abandoned_cart_order_status($order_status,$order){ | |
if(in_array($order_status,array("cancelled","failed"))){ | |
$order_status = "pending"; | |
} | |
return $order_status; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment