Description
openedon Jul 14, 2020
Is your feature request related to a problem? Please describe.
If a store uses custom order numbers (e.g. with the Custom Order Numbers for WooCommerce plugin), you can't search by order number in the app. Trying to search by the custom order number doesn't return any results.
Describe the solution you'd like
By default, the order id
and number
attributes are matching, e.g. id
is 123
(integer) and number
is 123
(string).
However, using the plugin mentioned above the order can have different attributes, e.g. id
is 123
and number
is S123
with a prefix (or the numbers may not match at all). The Core REST API endpoint /wp-json/wc/v3/orders/<id>
will return the custom order number as the number
attribute, like this: {"id":123,"parent_id":0,"number":"S123", ...
The app should be able to search on that number
field, not just the order ID.
Additional context
Searching by order ID | Searching by custom order number |
---|---|
Original report from a public beta tester, tested internally (internal ref: p5T066-1o1-p2#comment-5345)
Related iOS issue: woocommerce/woocommerce-ios#2507