New order notifications fire if an order has an order status of wc-pre-order
. This was to support the Pre-Orders extension, which we own. However, this order status no longer appears to be in use and no notification is fired if a pre-order is made using the extension.
I expected to receive a new order notification, both in Calypso and the Woo mobile app.
No notification was fired. From looking at the source code, it seems like the order status may have changed from wc-pre-order
to wc-pre-ordered
somewhere along the line:
This was originally reported to us in 3390870-zen.
I flagged this to the team that owns these notifications in /p1603706061129500-mobile-woo, a link to the internal code that likely needs updating is also included in that Slack message.
Aside: this might also be a good PR to incorporate a fix for https://github.com/woocommerce/woocommerce-android/issues/2282 :D
I've made a backend change to the notification system to support sending new order notifications for the wc-pre-ordered
status. For the record, we meant to use that status when we originally added support for the pre-orders extension. 馃槃 Left the support in for the non-standard wc-pre-order
status.
Most helpful comment
I've made a backend change to the notification system to support sending new order notifications for the
wc-pre-ordered
status. For the record, we meant to use that status when we originally added support for the pre-orders extension. 馃槃 Left the support in for the non-standardwc-pre-order
status.