Skip to content

Selector autocomplete: provide a way to filter the collection (e.g. active products only) #344

@Daaaaad

Description

@Daaaaad

While implementing a custom block with a product selector inside a repeater ('type' => 'selector', 'collection' => 'Product'), I noticed that the BO autocomplete returns all products from the catalog, including those that are inactive (product_shop.active = 0), hidden (visibility = 'none') or in draft state (state = 0).

In practice: the admin can pick an inactive product in the repeater, and there is no BO signal indicating that the product will not be rendered properly on the front.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions