Giter VIP home page Giter VIP logo

woo-cancel-abandoned-order's People

Contributors

pexlechris avatar rvola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

woo-cancel-abandoned-order's Issues

Allow for custom status to be cancelled

Hello, I'm wondering if you'd be interested in allowing custom order statuses to be canceled? Right now it's not possible as you're checking the status being passed with an array of authorized statutes.

            $woo_status_authorized = array(
                    'pending',
                    'on-hold',
                    'processing',
                    'completed',
                    'refunded',
                    'failed'
            );

You should be able to use any status, regardless if it's authorized. It just provides more flexibility.

Also, have you considered adding in debugging so that if a mistake occurs, a user can recover all the orders that were canceled? Furthermore, a "Don't do anything" option for testing that doesn't actually cancel the order but prints out debugging information on what orders would have been cancelled.

Cron that cancels orders stops working randomly

Hi guys. I created this issue without being 99% certain that the error is due to this plugin, but I wanted to ask you in case you knew how to debug this further.

I have your plugin, with the hook setup so it cancels failed and on-hold orders after 3 days. That seems to be working fine.
The issue is related to WC automatic cancel of pending orders. It works at times, and suddenly it stops working. I have to go to Settings > Products > Inventory and save the settings, that way the cron is scheduled again.

I've checked WC changelog to see if this was a bug, but I found nothing. I check on my logs without any further debugging information. My server has no automatic restarts, on New Relic APM response time is 600ms, and the site works great, EXCEPT for this thing.

I was wondering, considering you have experience in this specific topic, if you could guide me on how to debug this further. I don't intend that you fix me the issue and I know this is not the relevant place, but I'm a bit desperate. What happens if the orders are not cancelled is that the products are displayed as in stock, but when you try to purchase them, it won't work.

I've read many topics of this, but none is very helpful. The main issue is that it works for some time, but then something happens and it stops working without further notice. The crons are working, otherwise your plugin won't cancel orders. It's as if somehow the cron gets removed from the scheduled tasks.

Sorry if this seems inappropriate, I'm just looking for any kind of help.
Thanks in advance,

Santiago

Add minutes mode

Hi, do this plugin possible to add mode in minutes for pending payment?

How to use This Plugin ?

Hi
im so sorry but i couldn't undrestand how should i use this plugin

for example i want to use this plugin for all my gateways and i want to cancel 'pending' orders after '1' hour

Use action scheduler API instead of wp-cron

Hi developer, first of all this is an amazing plugin.

But one thing I want you to do with this plugin is, could you please use “action scheduler API” instead of wp-cron.

Because action scheduler API can handle any number of tasks for schedule.

But wp-cron can create problem in such cases.

Action scheduler API is latest and modern way to schedule something in WordPress and woocommerce. This API is also provided by woocommerce/WordPress.

I am not a developer. But I have read about action scheduler API a lot during my research for schedule plug-ins.

How to troubleshoot...

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

Not really working with automatic payments with some gates

Hi Guys,
As I am developer I figure out what should be done to make sure will work with some gates with using "wc-pending" status instead of "wc-on-hold" :) I changed includes/class-cao.php:
SELECT posts.ID FROM $wpdb->posts as posts INNER JOIN $wpdb->postmeta as meta ON posts.ID = meta.post_id WHERE posts.post_type = 'shop_order' AND posts.post_status = 'wc-on-hold' AND posts.post_date < %s AND meta.meta_key = '_payment_method' AND meta.meta_value = %s
to
SELECT posts.ID FROM $wpdb->posts as posts INNER JOIN $wpdb->postmeta as meta ON posts.ID = meta.post_id WHERE posts.post_type = 'shop_order' AND (posts.post_status = 'wc-pending' OR posts.post_status ='wc-on-hold') AND posts.post_date < %s AND meta.meta_key = '_payment_method' AND meta.meta_value = %s

I hope I helped you :)
Cheer,
Arkadiusz

To cancel orders in hours

Hi! Sorry, this is not an issue but I wanted to ask this. I will delete it once I have the answer.
Thanks!

Prevent order cancellation for the past

Hello,

thanks for your plugin. I gave it a try and works perfectly.

I wonder if it's possible to prevent order cancellation for the past and then to enable it only for future orders.
E.g. a store owner has hundreds of on-hold orders he forgot to cancel.
However, over time he has manually updated the inventory.
He wants to prevent the cancellation of past orders from restoring the stock, altering the actual current stock, and from triggering several emails.

Do you thing it's possible to add this option?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.