Determine whether logged-in customer has purchased the current product (page)

Is there a way to find out whether the current product (page being viewed) has been purchased by the logged in customer? I want to upload attachments with the product, and I want these attachments to be available for download only to customers who have purchased that product. Thanks in advance.

  • Timothy Bowers
    • Chief Pigeon

    Hey there.

    I was just looking through the code, if you look in:


    You will find the mp_order_status() function. It's this function which is used for the history order page of your buyers.

    This is custom, so you would need code something up here to assess they're purchase of an item and then run a conditional statement on the product page to check their purchase and if it's valid then display your custom field.

    If this isn't something you're able to do then perhaps Tweaky could help you out:

    Take care.

  • PC
    • WPMU DEV Initiate


    Greetings and thanks for being a great community member.

    We haven't heard from you on this one for long and I am doing a regular followup to see if there is still something we can assist you on this thread.

    Just to manage the support issues more efficiently, I am marking this thread as resolved for now however this is not being done to avoid your questions in any ways.

    Please feel free to mark this is "Not resolved" in case you have further questions and we would be back on it.

    Thanks a lot for being with WPMU DEV.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.