Show Total Visits [VIP / Member Card]

Hello,

We have a member card (we call it VIP) and it works great. It’s per Emre’s tutorial. I can go into each persons account details and count how many visits but I want to show at the top of the screen when customer is selected their total number of visits, we have a rewards program for this based on visits. Is there a way to do this?

I think you can do it 2 ways.

  1. Custom Report Tag count number of ticket total over 0 for this customer. I’m not sure this method is going to slow down system especially if you have millions of records.
  2. Use custom field in customer entity and use action to update number of visit when ticket is paid.

May be use 1. for the first time (field is empty) and use 2 to update after you get number.

You could use a combination of 1 and 2 in another way - instead of using the custom report tag to count each time a customer is selected, you could have a rule which triggers when the customer is first selected to check if the value from point 2 exists. If it doesn’t then use point 1 then store the value into the custom field and update that going forward. Since you would check if the custom field exists first, you will only run the custom report tag once for each entity until you have all the values stored in the custom field.