Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iamgabrielma opened this issue Feb 11, 2025 · 1 comment
Labels
category: design Layout and style elements in the UI or user interface, including color and animations. feature: order creation All tasks related to creating an order feature: order details Related to order details. priority: low Not many people are affected or there’s a workaround, etc.

Comments

@iamgabrielma
Copy link
Contributor

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.

@iamgabrielma iamgabrielma added category: design Layout and style elements in the UI or user interface, including color and animations. feature: order details Related to order details. feature: order creation All tasks related to creating an order labels Feb 11, 2025
@dangermattic
Copy link
Collaborator

dangermattic commented Feb 11, 2025

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.

@iamgabrielma iamgabrielma added the priority: low Not many people are affected or there’s a workaround, etc. label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: design Layout and style elements in the UI or user interface, including color and animations. feature: order creation All tasks related to creating an order feature: order details Related to order details. priority: low Not many people are affected or there’s a workaround, etc.
Projects
None yet
Development

No branches or pull requests

2 participants