Skip to content

"Only discounted products" criteria must be updated to use offer.is_discount #5

@ddattee

Description

@ddattee

How to reproduce
I'm trying to retreive the products from a virtual category via API.
The virtual category has been created on the "Only discounted products" criteria.

Problem
Following the recomandation found on this subject Smile-SA/elasticsuite#217.
I tried retrieving the products via the REST search API using the price.is_discount field but it doesn't work.

Reason
After diging I found that the index is made on an offer.is_discount field which is inconsistent with the field used in the Magento.

Solution
So the module needs to eather set the offer.is_discount as the field for "Only discounted products" or index on the price.is_discount field instead of the offer.is_discount.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions