Skip to content

Orders: Support searching by custom order number #2622

Open

Description

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
Screenshot_20200714-130323 Screenshot_20200714-130331

Original report from a public beta tester, tested internally (internal ref: p5T066-1o1-p2#comment-5345)

Related iOS issue: woocommerce/woocommerce-ios#2507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    category: won’t fixConsidered and it was determined we do not plan to work on it at this time.category: woo extensionsRelated to WC extensions or plugins.feature: order listRelated to the order list.type: enhancementA request for an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions