Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement date intervals in the rule engine #3260

Open
romainruaud opened this issue Apr 18, 2024 · 0 comments
Open

Implement date intervals in the rule engine #3260

romainruaud opened this issue Apr 18, 2024 · 0 comments
Assignees
Labels

Comments

@romainruaud
Copy link
Collaborator

Todo after #3256

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

  • created_at "is greater than" "2024-01-01"

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 :

  • Products created in the last X days (where X is contributed in the rule engine) : will be based on created_at attribute.
  • Products updated in the last X days (where X is contributed in the rule engine) : will be based on updated_at attribute.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants