Wp-calypso: New Order Notifications for Pre-Orders

Created on 26 Oct 2020  路  3Comments  路  Source: Automattic/wp-calypso

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.

Steps to reproduce

  1. Install and activate the WooCommerce Pre-Orders extension on any site using WooCommerce.
  2. Follow the extension's documentation to set up a product that can be pre-ordered.
  3. Go through the steps to place a pre-order on your site and pay the required deposit, this will set the order's status to Pre-Orders.

What I expected

I expected to receive a new order notification, both in Calypso and the Woo mobile app.

What happened instead

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:

Screenshot 2020-10-26 at 09 44 12

Context / Source

This was originally reported to us in 3390870-zen.

user-report

Notifications [Type] Bug

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-standard wc-pre-order status.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings