Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to troubleshoot... #14

Closed
melrazdig opened this issue Apr 15, 2021 · 1 comment
Closed

How to troubleshoot... #14

melrazdig opened this issue Apr 15, 2021 · 1 comment

Comments

@melrazdig
Copy link

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 );

@rvola
Copy link
Owner

rvola commented Apr 15, 2021

Hello,
I indicated on the WordPress forum that I no longer provide support on the custom configuration.

Your given configuration looks good.

@rvola rvola closed this as completed Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants