I am not sure if there is a way to do this and I would like to double check before I start messing with php.
If a user buys a product when they are logged out and then return to the site and register, is there a way they can have a reference number for the document they purchased so they can enter that into the site and then have access to their purchase history.
I was thinking you could use the email address to do this but that could be abit sketchy as if the user changes their email address/may change their address and then they would lose their history again.
Please tell me if there is a way to do this or a good way to approach implementing this!
In the current version, the extension is using email address for mapping the order with user account. In the next version, I think I will add a section which allow users to enter username / password to create a new account and map this account with the order (If user has an account already, he can simply enter username and the order will be mapped to his account) .