Check if user has bought product
-
Hello
What do I neeed:
A way to check if user has bought a given product to display an additional content element if true. Basicly selling acess to a video that can be acessed only when the order process is completedWhat I have tried to do:
I found this code here
But had no luck making it work.$bought_product
returns nothing, so a check cannot be preformed.The function code goes to functions.php in the theme folder, right?
Any help would be greatly appreciated.
- The topic ‘Check if user has bought product’ is closed to new replies.