Smile-SA / magento2-module-offer

Offer Module for Retailer Suite
6 stars 13 forks source link

Drive mode does not work #17

Closed delyriand closed 3 years ago

delyriand commented 3 years ago

Preconditions

Magento Version : 2.4.1

Module Offer Version : 1.4.0

Environment : Developer

Third party modules : smile/elasticsuite-for-retailer in 2.1.0

Steps to reproduce

  1. Create one (or more) retailer
  2. Create an offer for this retailer and a product
  3. Change the navigation mode to "Drive mode" in ElasticSuite > Elastic Suite for Retailer
  4. Go to the category of this product

Expected result

  1. I only see the product with an offer
  2. In the elasticsearch document, i see the offer data

Actual result

  1. I see all the products even those without an offer
  2. In the elasticsearch document, I don't see the offer information (price for example)

Informations

In the definition of the data source for the offers, there is an additional element node: https://github.com/Smile-SA/magento2-module-offer/blob/846ee295cc2a6d9eca03890f259adcfdcd81b6c5/etc/di.xml#L53