-
Notifications
You must be signed in to change notification settings - Fork 685
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
[BUGFIX] Show a message when a category has no products assigned #1496
[BUGFIX] Show a message when a category has no products assigned #1496
Conversation
|
hey @Jordaneisenburger haven't had a chance to look at this yet but was curious about the CLA agreement ... do you have the option to sign it again now that the repo is in the |
@supernova-at CLA signed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool, thanks for tackling this!
I've added the needs-ux
label to this because I don't think we have any mockups for this scenario.
For consistency I'm thinking we'd want it to look more like other "error" cases like this (but probably not to say "Closed"):
https://magento.invisionapp.com/share/WQN5F7BYBPG#/screens/329211515
align-items: center; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100vh; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this to be 100%
?
Looks like there is a merge conflict to resolve as well. |
Yes agreed that the UX/UI needs to be more consistent with the rest of venia, @soumya-ashok what do you think would be best here ? |
@Jordaneisenburger Here are a couple of options Based on what is possible with GraphQL, it might be good to provide direction to the shopper on this error screen to either browse other categories, related or similar products to what they were trying to view. This would mitigate the effect of a dead-end as far as a shopping experience is concerned. @supernova-at @awilcoxa Thoughts? |
@soumya-ashok — Good improvement over the "closed" sign :) For larger stores that have automated catalog imports, this scenario probably never occurs because if a category were empty it would be disabled until the next catalog refresh. For smaller stores, they sometimes have trouble managing the list of categories or products to show in rare contexts like this (out of sight, out of mind) so I've found the best default approach is simply rendering the top-level of categories. That redirects an unknown search term into the broadest taxonomy of the site. Then if the store wants more control we might create a hidden category of "best seller" products to render in various empty states in the application so they always see something. |
Thanks @brendanfalkowski ! :) I did bring up here with the team that this seemed like an edge-case. I see what you're saying about the broad list of categories and the "best seller" approach as well. If I were to pick, I would go the "best seller" or product recommendations route because this listing view is something we would already have an established pattern for elsewhere on the site and the fact that engaging with one of those to go into the PDP is one-step closer to conversion than a category page. |
Agree with Soumya here, would need some weigh in from the team on LOE in any case since we would want to avoid any large effort for such a small (potentially) edge case. |
The lowest level-of-effort would be to link to some or all of the top-level categories, since we already have that data handy. |
@Jordaneisenburger , @awilcoxa is out this week - I'm confident we can go ahead and link some top-level categories on Soumya's mockup and this will be good to go. Thanks again! |
Sweet, will pick this one up again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments otherwise this is great.
@supernova-at I don't see suggested category list. Is this expected? |
That is not expected, but the categories do take some time to appear if you start directly on that page. |
…pwa-studio into bugfix/empty-category
@dpatil-magento good catch! Fixed in f6fce9c. |
Description
This PR introduces a new component in
RootComponents/Category
calledNoProductsFound
which is rendered when a category has no products.It also:
NoProductsFound
talon in Peregrinepackages/peregrine/lib/store/actions/catalog/mockData.js
which wasn't being used and was out of date anyway (which caused confusion)Related Issue
Closes #823.
Closes #1678
Verification Steps
Catalog
>Categories
>Add Subcategory
Application
tab, clickClear Site Data
and refresh the pageScreenshots / Screen Captures (if appropriate)
1
2
Proposed Labels for Change Type/Package
Checklist: