Hi, this takes a bit long to explain. But we have this loyalty program where customers get a 33 % discount whenever they buy three products. They can use this discount on their next buy for a fourth product.
We have Klaviyo integrated with Magento 2.
So, the way I would like to set it up is:
- Set a segment: customers who bought three products.
- Set a flow: send dynamically generated code.
This part seems easy.
The tricky part is, how to count products ordered across various purchases?
For example. It is typical customers buy 5 products for a certain discount. So two products would have to wait for another purchase to make a customer eligible for another 33 % discount coupon.
And how would I reset the count once a customer gets a code. I probably can’t filter him our from entering the flow again.
I hope this is not confusing, but if anyone has ever done something similar, I will be very grateful. Thank you.