How to giving 1 point per every 10 dollars purchase using scoring

jamez Rad asked on December 7, 2024 15:15

We want to give contacts 1 point based on every 10$ of their purchase. i suggested creating a custom activity per each 10$ and defining a rule that gives a point per these activities. is there a better solution?

Recent Answers


Brenden Kehren answered on December 9, 2024 15:42

Custom activity is the best option IMHO.

1 votesVote for this answer Mark as a Correct answer

jamez Rad answered on December 10, 2024 08:35 (last edited on December 10, 2024 08:36)

Thanks Brendedn.

Actually we get the data from an API. So if customer purchase amount was 5,000$ system generates 500 custom activity. Then gives 500 points based on rule that gives 1 point per these activities.

Is it OK? And should I worry about performance or something like that?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 10, 2024 14:53

Sounds as if you are generating your points based on the wrong activity. The activity should be the purchase, not the dollar amount of the purchase.

0 votesVote for this answer Mark as a Correct answer

jamez Rad answered on December 14, 2024 08:17 (last edited on December 14, 2024 08:18)

In fact, suppose we are going to give the contact 1 point for every $1 of their purchase after receiving the contact's purchase information from the Third party API.

If we use the purchase activity defined in Kentico, we need to define a new rule for every $1 increase in price, and thus we need to define 100 rules to cover amounts from $1 to $100. Defining and managing this number of rules will be difficult and time-consuming.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 14, 2024 19:00

With the purchase you know the dollar amount. Create a loop that iterates through each full dollar in the purchase price and apply a point. You don't need a custom rule or activity. At best you have a cross-reference table that states how many points per dollar you apply to a person.

For example if you have a purchase activity and the purchase price is $37, your activity captures the purchase and loop through the $37 and apply 37 points.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.