Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

New Block: Filter Products by Attribute #713

@pmcpinto

Description

@pmcpinto

User Story
As a merchant
I want a block that allows filtering my products by specific attributes
So I can allow users to narrow down products based on that criteria

Acceptance Criteria

  • The list should be truncated if it contains more than 10 attributes (https://baymard.com/blog/truncation-design)
  • The merchant can choose the query type AND/OR.
  • If the merchant hasn’t setup attributes yet for their store it should see a message explaining that he first needs to add new attributes. That message should redirect the user to the Attributes page
  • If the merchant already has some attributes, he should see a search input to search for attributes
  • If the merchant wants to filter by multiple attribute types it requires creating additional blocks and choosing the next attribute
  • The merchant can show/hide the product count (content setting)
  • The merchant can edit and change the filter options in a new setting in the sidebar (filter products by attribute setting)
  • he merchant can also edit and change the filter options by clicking in the pencil icon in the block toolbar
  • Content, Block and Filter Products by Attribute settings are expanded by default
  • The list of the existing attributes will show the number of products associated to each attribute Products are not mapped to attributes, they are mapped to terms. This cannot be done due to technical limitations.
  • The merchant can only see this block in the block library while editing the Product Archive Page These filters will work with all-products block.
  • The block needs to be displayed in the Product Archive Page by default, to help with initial discovery These filters will work with all-products block.

Additional context
P2: p6riRB-4CG-p2
Prototype
Mobile prototype with collapse/expand filter

Metadata

Metadata

Assignees

Labels

type: new blockApplied to work that introduces a new block (typically used on an epic issue).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions