We can show a certain widget to people who have made multiple purchases only in the case that they will be logged in and that status is passed to Talkable’s initialization script. This way we will be able to identify if the person has made the appropriate amount of purchases (by their email).

It’s rarely done, but, if this option works for you, you will need to:

Set up two different widgets with different join criteria:

1) to display the widget for the customers who've made one purchase, add this criterion to one widget campaign:


{% if advocate_info.purchases_count == 1 %}

true

{% endif %}

2) to display the widget for the customers who've made more than one purchase, add this criterion to the second widget campaign:

{% if advocate_info.purchases_count >1 %}

true

{% endif %}

Additionally, you can add a third additional widget campaign for the customers who haven't made any purchases and include this criterion:

{% if advocate_info.email == blank or advocate_info.purchases_count == 0 %}

true

{% endif %}