Skip to content

[Orders] Improve UI to explain discrepancy when searching Order Customers vs Store Customers #15109

@iamgabrielma

Description

@iamgabrielma

Ref: p1738568716995749-slack-C02KUCFCSFP

The "search customers" feature returns different results depending how customers are added and where we search from: Searching through the order is not finding customers that have been entered via the app, only customers that have gone through the web checkout flow. But all customers seem to appear under Menu > Customers. So:

  • A customer that has been added through the app can be found in the customer list search, cannot be found in the order customer search
  • A customer that has been added through checking out via web flow appears in both places
406426995-b825d3b7-9cf1-4eed-84b5-76a7342bdb81.1.mp4

This discrepancy is expected. The Menu > Customers section uses the CustomerAction.searchWCAnalyticsCustomers action to perform its search. This should be consistent with the customers section on the web, however, the order customer search uses the CustomerAction.searchCustomers action.

Despite both calling the same remote endpoint, the searchCustomers method maps the search results to customer object, which limits what is returned, which seems to be related to how the customers are used in orders, and what data is needed (billing address?).

Would be good to improve the UI so the merchant knows why these results may differ in some way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: designLayout and style elements in the UI or user interface, including color and animations.feature: order creationAll tasks related to creating an orderfeature: order detailsRelated to order details.priority: lowNot many people are affected or there’s a workaround, etc.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions