TODO 1.43 KB
Newer Older
1
2
3
OpenTools Advanced Ordernumbers for WooCommerce - Open TODOs
============================================================

4
- Make sure the numbers are generated only for new orders, not for existing ones
5
6
7
8
9
10
11
- Check REST API
- Would it make sense to configure the order password format?
- Find out how multisite works and make the plugin work with it
- Add action to create an updated / new order number for an existing order
- implement woocommerce_hidden_order_itemmeta hook to hide the order number post meta?
- Use $order->order_date for the date-relating fields!
- Collect and return php warning messages (i.e. all other output) in the AJAX call and return it inside the JSON rather than as extra HTML.
12
- Create order number also when ordering in the frontend
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38


HOOKS for order handling:
woocommerce_new_order: FE new
woocommerce_checkout_update_order_meta: FE updated
woocommerce_checkout_order_processed: FE created, API created
woocommerce_process_shop_order_meta: API created, API updated, BE updated
woocommerce_api_create_order: API created
woocommerce_api_edit_order: API updated



woocommerce_create_order: // Give plugins the opportunity to create an order themselves

woocommerce_generate_order_key
woocommerce_order_class
woocommerce_order_status_changed
woocommerce_order_action_


wc_create_order( $order_data );
woocommerce_new_order', $order_id );


Order created in BackEnd:
Created: wp_insert_post => Assign placeholder (no address yet)
39
Modified: