You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to change the status of 'Failed' orders to 'Cancelled' after 1 hour. I have added the following to functions.php but my test failed order doesn't change to cancelled. I have also enabled it on the payment Gateway. What am I doing wrong?
Hi, I want to change the status of 'Failed' orders to 'Cancelled' after 1 hour. I have added the following to functions.php but my test failed order doesn't change to cancelled. I have also enabled it on the payment Gateway. What am I doing wrong?
function woa_custom_gateways_hook( $gateways ) {
$gateways[] = 'paymentsense_direct';
return $gateways;
}
add_filter( 'woo_cao_gateways', 'woa_custom_gateways_hook', 10, 1 );
function woa_custom_statustocancel_hook( $status ) {
$status[] = 'wc-failed';
return $status;
}
add_filter( 'woo_cao_statustocancel', 'woa_custom_statustocancel_hook', 10, 1 );
The text was updated successfully, but these errors were encountered: