on ‎2019 Jun 12 2:28 PM
I want to create promotion rule for all new customers, Can anyone give me an idea to how to achieve this.
my requirement is to create referral code for all new customers
Request clarification before answering.
usually this type of promotion should lure user to order with your site
a good scenario is when a customer does not have an order. so if customerModel.getOrders() is empty, then your customer is a new customer (so promotion will only be applied to the first order that a customer places)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depends on how you define them, you can write your own rule condition to evaluate to true for a new customer. through adding a boolean attribute customerrao and populating it from customerraopopulator based on your criteria. For example (you can mark it to true if the customer is registered in last 6 months and havent yet placed any order so far or else false)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.