Rewards points

The number of copies of my product they buy - THAT needs to be added into their loyalty points tally.

So if its 4 tee shirts - their Loyalty tally increases by 4 points.

How do I achieve this ?

Currently the loyalty program only allows me to give points for every $1 spent and every store order. I tried the automation also - but that too is only restricted to the store order.