Update order status from custom status to another one based on date condition - 29/04/2018 14:56 EDT


I use woocommerce latest version and my clients pay either:

1) when they order (credit card, wire transfer, paypal,...)

2) with payment terms, so I ship the products and then I do a Direct debit at payment terms to get the funds.

Once the order is shipped, its status is changed from "PROCESSING" to my custom status "SHIPPED". This update is done automatically by a tracking number plugin when I import the tracking numbers CSV file, so nothing to do here.

I would like the following to happen automatically:

1) when order has already been paid, then the "SHIPPED" status should be automatically updated to "COMPLETED". So the condition can only depend of the payment gateway used (I will fill in the payment gateway IDs in the code you send me) since I manually change the

2) when order is paid at payment terms, then the order status should be automatically updated from "SHIPPED" to my other custom status "Processing direct debit" X days before the payment due date. I have in my order metas a custom meta "$due_date" with the payment due date, so you only need to get it.

I need the code to add to my [url removed, login to view] file. I will fill in the payment gateway IDs - just let me know how to add several of them in the code for 1)

Please let me know if you have any questions


Taidot: PHP, tietojärjestelmäarkkitehtuuri, WooCommerce, WordPress

Näytä lisää: magento change order custom, sql order custom, sharepoint custom view date query, order custom fields wordpress, wordpress custom query date wrong, wordpress query posts based date, sql statement update employee salary based hire date, sort based date vbnet, sql order custom sql, retirve data based date aspnet vbnet sql server, sql server running total update order, wordpress custom fields date filter, pho order list mysql date name description, ajax update order form, wordpress sort custom field date

Tietoa työnantajasta:
( 1 arvostelu ) MONTPELLIER, France

Projektin tunnus: #16825583

Myönnetty käyttäjälle:


Hello there, I just need to clarify both point to confirm that I understand it exactly. But, I am sure about getting this done for you. Let's discuss and I can get started now. Thanks.

€34 EUR 1 päivässä
(57 Arvostelua)

3 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

€23 EUR 1 päivässä
(96 arvostelua)

hello sir i can give this work with 100% satisfaction within time limit,and also i have great hands on woocommerce l ,waiting for your message Experience in PHP, PHP Frameworks Like Codeigniter, Yii 2 and laravel Lisää

€29 EUR 3 päivässä
(95 arvostelua)