This is specifically about digital products but I was hoping to build some sort of conditional statement to check if a user has already purchased the product or not.
On the cart page, we have custom code based on wc_customer_bought_product
to disable the actual purchase but it would be helpful to be able to hide the add to cart button much earlier to avoid confusion.