Check if a customer has bought a product
-
Hi,
How would I check if a logged in user has bought a specific product and if yes, to hide that product? Basically we’d like to limit a specific product to be purchased only once by each user.
I saw a function for checking in the API docs https://docs.woothemes.com/wc-apidocs/function-woocommerce_customer_bought_product.html But with my limited knowledge in PHP, I’m not sure how to create a function for what I need.
Or is there an existing plugin that does this? I’ve tried searching and I didn’t find anything.
I’d appreciate the help, thanks! ??
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Check if a customer has bought a product’ is closed to new replies.