This week one of our partners needed to implement a simple script for checking whether an user, in a Woocommerce website, had ever purchased anything. Searching the internet forums, he came up with the most bizarre solutions. Some scripts used direct MySQL queries to get such data, while some others relied in a “foreach” to […]