Disabling Add to Cart Button if user already purchased product

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.

Hello @dobacco,

Thanks for writing in! PLease be advised that the theme does not modify any WooCommerce functionality. What you are trying to add here is to hide away the “Add to Cart” button which is not a default of WooCommerce. This is beyond the scope of our support by the way as we only covers getting your site set up, minor cosmetic changes and bug fixes.

If you are using a 3rd party plugin, please contact the creators fo that plugin for further assistance.

Best Regards.