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 Price #710

@jwold

Description

@jwold

Issues in this epic:

User Story
As a merchant
I want a block that allows filtering my store's products by price
So I can allow users narrow down products based on that criteria

Acceptance Criteria

  • If no products published (with prices), block displays notification linking to create products
  • If the merchant has products with prices, he can see the block with the slider in the editor
  • The merchant can see the price range of all the products in his store: min: 0$ and max: most expensive product in the store
  • The merchant is not able to interact with the slide in the Editor
  • The slider only shows prices with round numbers. It needs to automatically round up to the next whole number
  • The slider will change color as it’s dragged around. The corresponding input field will also automatically adjust its number at the same time
  • The user can change the price range by dragging a handle or changing the price in the input field. Clicking in the middle of the slider won't change the price range
  • The user can collapse/expand the filter in the frontend
  • On mobile devices the filter should be collapsed by default
  • The slider uses a logarithmic non-linear scale (optional)
  • When the user sees the slider in the frontend, the min value should be 0 and the max value should be the price of most expensive product in the store
  • The merchant can show/hide the input fields (block setting)
  • If the merchant hides the input fields, the user can see the price in the same area but only change them by dragging the handle
  • The merchant can choose between displaying the filters as slider or list (block setting)
  • The block presents the slider as the default option
  • How to edit the price ranges that are displayed in a list (TBD)
  • The merchant can show or hide the filter button (block setting)
  • The filter button is hidden by default
  • If the filter button is hidden, in the front end the product list is updated when the user stops dragging the slider handle
  • The Block settings is expanded by default
  • Advanced setting is collapsed by default
  • The merchant can only see this block in the block library while editing the Product Archive Page
  • The block needs to be displayed in the Product Archive Page by default, to help with initial discovery

Additional links

Metadata

Metadata

Assignees

No one assigned

    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