ovirex
Forum Replies Created
-
Forum: Plugins
In reply to: [Cancel Abandoned Order] Cron recurrenceThen there’s always gonna be that “delay” or the possibilite that the order gets cancelled out of time. There’s nothing It can be done at the moment. The best thing I can do is run the wp-cron frequently so I don’t have to deal with the low traffic “delay” too.
Either way, thank you very much for all your help. I really appreciate that you answer me.
I would like to help you with the plugin. But my php skills… welp… I’m not proud of them 😂.
Kind regards.
Forum: Plugins
In reply to: [Cancel Abandoned Order] Cron recurrenceHi @rvola. Thanks for answering once again.
Because when the woocao task is activated at 9:58 a.m. it will ask: “Give me the orders that are over 1 hour old and must be cancelled. However, the 9:15 a.m. order does not yet have 1 hour.
At the passage of 10:58 this time it will be canceled.In this case. Shouln’t it be better to be able to set that time? So instead of being a fixed time the user can change it for convenience. Or there is a way for changing that?
I just did what you told me. I’m using a cpanel server so the config is something like this: /usr/local/bin/php /home/mysite/public_html/wp-cron.php
But after reading this. I think is something more like this: wget -q -O – http://yourdomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
I’m running the cron from server every 5 minutes.
So. I can run the wp cron more often so there’s no “delay”. But either way, If I got an order at 4:45 an woo_cao_cron runs at 5:10. Then the order will be cancelled at 6:10 and not at 5:45. Right?
Sorry If I didn’t get what you said. I’m sleep deprived hehe.
Kind regards.
Forum: Plugins
In reply to: [Cancel Abandoned Order] Cron recurrenceHi again @rvola. What I tried didn’t work 😂.
I disable the wp cron and run the crons from server every 5 minutes.
But doing that didn’t solve the problem. A order that was made at 3:58 should be canceled at 4:58. But It was canceled at 5:50. So. To fix that. Is the second “cheat” the way?
One way to “cheat” would be:
* speed up the recurring task with the cron
* modify the calculated delay of the options by this filter: https://github.com/rvola/woo-cancel-abandoned-order/wiki/Change-the-calculation-date-for-ordersForum: Plugins
In reply to: [Cancel Abandoned Order] Cron recurrenceLet me see what I can do and I write you back.
Cheers.
Forum: Plugins
In reply to: [Cancel Abandoned Order] Cron recurrenceHi @rvola. Thank you for anwsering.
Nono, I mean the hook woo_cao_cron, the one that you see in Scheduled Actions. That one is always set to 1 hour. The one in the woocommerce payment settings is alright as it is.
The way I understand the plugin works is. You set how long an order is going to be in on-hold status until it gets automatically cancelled. That could be 1 hour, 10 hours, 10 days. But, the function/hook that checks if there are any orders that past their time and should be cancelled is woo_cao_cron. And that function runs every 1 hour.
Correct me if I’m wrong in something.
So, what I need is to check more often if a order should be cancelled.
Let me know if that’s possible, I was thinking maybe with WPCrontrol.
Kind regards.
Forum: Plugins
In reply to: [Redirection] rediret from anchored url to non anchoredHi @davsev , I want to ask how did you solve the problem you present in this post of yours https://wordpress.org/support/topic/is-it-possible-allows-users-to-enter-a-course-limited-period-of-time/. I need to do the same thing so I would like to know if you found a solution for that.
- This reply was modified 4 years, 7 months ago by ovirex.