How to add custom promotion condition

Hi,



I’d like to know how to add custom promotion condition? For example, add new condition customer’s e-mail - if it contains “@domain.com” - he gets a bonus or dicsount.

Thanks!

Could anyone help with that?

Email domain is not a condition that is supported in the cart.