Hm... I looked through the code and I can't find anything doing what described. Maybe that was actually fixed at some point? At the moment the code just goes by user ID, so it's not connected to what item you use.
However it does look like it's counting all savings, not just discounts from the card. Unfortunately it wouldn't be possible to retroactively separate these two counts. I could tweak this code to only count discount card savings moving forward, but then I'm not sure what to do about existing counts. Maybe just give everyone a button to clear that number if they want it to be accurate moving forward?
🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights