Conversation
supportHi Using the document I added the port ID to the code But plugin settings were not added to the port 1- What information should I enter in the cod section? function woa_custom_gateways_hook ($ gateways) { $ gateways [] = ‘cod’; // Delivery for example. $ gateways [] = ‘wc_idpay’; // Stripe P24 for example. return $ gateways; } 2- Should I use hooks for abandoned orders and waiting for payment? $ status [] = ‘wc-pending’; $ status [] = ‘wc-on-hold’; $ status [] = ‘wc-failed’;
Hello @alirezam500 I think you didn’t quite understand how the plugin works. Point 1 is used to add operation on a specific gateway. By default it works for ‘check’ and ‘bank transfer’. If you have a custom or external gateway, follow the procedure explained here to configure: https://github.com/rvola/woo-cancel-abandoned-order/wiki/Add-a-new-gateway For point 2: the plugin cancels by default the orders with the status “pending”. If you want to cancel another order status, follow the procedure here to configure: https://github.com/rvola/woo-cancel-abandoned-order/wiki/Change-the-status-type-for-the-cancellation-process This reply was modified 5 years, 2 months ago by RVOLA .
I also use the document Image of the payment gateway url at the link below : https://shicstyle.ir/wp-content/uploads/2021/03/cccc.png Based on the document, is the code like this? Do I need another change to add the payment gateway? function woa_custom_gateways_hook( $gateways ) { $gateways[] = ‘cod’; // Delivery for example. $gateways[] = ‘wc_idpay’; // Stripe P24 for example. return $gateways; } add_filter( ‘woo_cao_gateways’, ‘woa_custom_gateways_hook’, 10, 1 ); —————— https://github.com/rvola/woo-cancel-abandoned-order/wiki/Change-the-status-type-for-the-cancellation-process I want all orders except completed orders to be canceled after 10 minutes. What is the correct code?
I can’t see the image (403 error). If you see the WOOCAO options in the desired gateway, this is the correct configuration. Then set for 10 minutes. Add the following code to your functions … function woa_custom_statustocancel_hook( $status ) { // More explication on WooCommerce status : https://docs.woocommerce.com/document/managing-orders/ $status[] = 'wc-pending'; $status[] = 'wc-on-hold'; $status[] = 'wc-processing'; $status[] = 'wc-refunded'; $status[] = 'wc-failed'; return $status; } add_filter( 'woo_cao_statustocancel', 'woa_custom_statustocancel_hook', 10, 1 );
https://i.postimg.cc/RhBbgJX5/cccc.png Image link WOOCAO is not found in the port settings Give me access to look؟
can you send me an email on my website http://www.rvola.com with a link to download your gateway extension that I am testing
Did you manage to configure the plugin? I realize, without blaming you personally, that most of the open support threads I never get a “thank you for your free help”. Afterwards, we are surprised that plug-ins are paid for, but we should at least know how to thank the volunteers.
Hello @alirezam500 I think you didn’t quite understand how the plugin works. Point 1 is used to add operation on a specific gateway. By default it works for ‘check’ and ‘bank transfer’. If you have a custom or external gateway, follow the procedure explained here to configure: https://github.com/rvola/woo-cancel-abandoned-order/wiki/Add-a-new-gateway For point 2: the plugin cancels by default the orders with the status “pending”. If you want to cancel another order status, follow the procedure here to configure: https://github.com/rvola/woo-cancel-abandoned-order/wiki/Change-the-status-type-for-the-cancellation-process This reply was modified 5 years, 2 months ago by RVOLA .
I also use the document Image of the payment gateway url at the link below : https://shicstyle.ir/wp-content/uploads/2021/03/cccc.png Based on the document, is the code like this? Do I need another change to add the payment gateway? function woa_custom_gateways_hook( $gateways ) { $gateways[] = ‘cod’; // Delivery for example. $gateways[] = ‘wc_idpay’; // Stripe P24 for example. return $gateways; } add_filter( ‘woo_cao_gateways’, ‘woa_custom_gateways_hook’, 10, 1 ); —————— https://github.com/rvola/woo-cancel-abandoned-order/wiki/Change-the-status-type-for-the-cancellation-process I want all orders except completed orders to be canceled after 10 minutes. What is the correct code?
I can’t see the image (403 error). If you see the WOOCAO options in the desired gateway, this is the correct configuration. Then set for 10 minutes. Add the following code to your functions … function woa_custom_statustocancel_hook( $status ) { // More explication on WooCommerce status : https://docs.woocommerce.com/document/managing-orders/ $status[] = 'wc-pending'; $status[] = 'wc-on-hold'; $status[] = 'wc-processing'; $status[] = 'wc-refunded'; $status[] = 'wc-failed'; return $status; } add_filter( 'woo_cao_statustocancel', 'woa_custom_statustocancel_hook', 10, 1 );
https://i.postimg.cc/RhBbgJX5/cccc.png Image link WOOCAO is not found in the port settings Give me access to look؟
can you send me an email on my website http://www.rvola.com with a link to download your gateway extension that I am testing
Did you manage to configure the plugin? I realize, without blaming you personally, that most of the open support threads I never get a “thank you for your free help”. Afterwards, we are surprised that plug-ins are paid for, but we should at least know how to thank the volunteers.