When is possible to use customer.total_spent

New Member
2 0 0

I'm confused how i could use in template customer.total_spent  variable if user is not logged on site. I mean about returning user, when he already did in past some purchase on site, now he trying to buy something again, and during checkout process i want to check how much he already totally spent on my site and do some restrictions if he is over limit. But in which moment shopify recognize user as already exist user?