Checking past orders with Rules
Can I check with Rules past orders of the acting user?
When user adds new digital product to the cart, I want to loop through all items in the past orders of that user to search, if the same digital product exists there or not.
I am currently not able to bring up past orders of current user, only the actual order/shopping cart. Is it please possible somehow?
Comments
Also need to do this
I'm building a site where a user can purchase a licence to download a pdf and I need to be able to stop them buying another of the same pdf when they already have it licenced to them in a previous order or somehow check if they have an active licence for that file.