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

feat(sfra): category pages #211

Merged
merged 1 commit into from
Dec 10, 2024
Merged

feat(sfra): category pages #211

merged 1 commit into from
Dec 10, 2024

Conversation

sbellone
Copy link
Collaborator

@sbellone sbellone commented Dec 9, 2024

Implement Category Pages using the categoryPageId added in #206.

This is done by adding a filters on the InstantSearch configuration (doc)

For categories pages, the hierarchicalMenu are not displayed anymore. This is on purpose, a category page is a standalone page of a single category.

Changes

  • Pass the categoryId to the enableInstantSearch options
    • add a filters on categoryPageId when the categoryId is present
    • add the hierarchical menus otherwise (if we are on the search results page)
  • Remove the breadcrumb widget. The category title not be updated by InstantSearch anymore, it will be updated when the user browses another category

How to test

  • Reindex products using the latest version from develop, to have the categoryPageId in the records
  • Browse categories using the top menu

SFCC-407

@sbellone sbellone self-assigned this Dec 9, 2024
@sbellone sbellone marked this pull request as ready for review December 9, 2024 19:37
@sbellone sbellone requested a review from htuzel December 9, 2024 19:53
@htuzel htuzel merged commit d3569e0 into develop Dec 10, 2024
5 checks passed
@htuzel htuzel deleted the feat/category-pages branch December 10, 2024 14:12
htuzel added a commit that referenced this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants