Jump to content

Edit History

Ali Samie

Ali Samie

How do I limit a cart rule to the number of customer's orders?
In other words, how do I create a voucher code for customers who have no orders yet?

I am thinking like this:
1. create a module which adds a check mark to cart rule form with the title of "usable for first orders only"

2. find a hook in the code where the addition of cart rule to the cart happens

3. check the number of orders and validate if this cart rule can be applied or not

Do you have any ideas?

Ali Samie

Ali Samie

How do I limit a cart rule to the number of customer's orders?
In other words, how do I create a voucher code for customers who have no orders yet?

I am thinking like this:
1. create a module which adds a check mark to cart rule form with the title of "usable for first orders only"

2. find a hook in the code where the addition of cart rule to the cart happens

3. check the number of orders and validate if this cart rule can be applied or not

×
×
  • Create New...