Smile-SA / elasticsuite

Smile ElasticSuite - Magento 2 merchandising and search engine built on ElasticSearch
https://elasticsuite.io
Open Software License 3.0
760 stars 336 forks source link

Implement date intervals in the rule engine #3260

Closed romainruaud closed 2 weeks ago

romainruaud commented 2 months ago

Todo after #3256

Having dates in the rule engine will not be very useful because it will require users to contribute conditions like :

So they'll not be able to create dynamic rules like "product created in the last X days".

We should create these kind of rules as an implementation of Special Attributes, like we made previously for the "only grouped products", "only configurable products", etc...

My proposal is :

This will require to have a setup that will set the created_at/updated_at attributes to be "used_for_promo_rules=1".