I need to make sure the users are logged in (and thus registered) before they can purchase a product in a game-related platform that I am working on.
My question is if there's the best moment for them to be asked to log in (or register).
I've seen platforms that ask to log in right after clicking the "Buy" button on a particular game page, as well as those on which you can browse and browse and collect items in the cart and then when you want to go to checkout or make any further move from the cart (like "Buy for myself" or "Buy as a gift") you have to log in or register.
I think that the second option is closer to ideal, because the users have more freedom to browse before they are "forced" to log in and probably by this browsing experience they would be more engaged to register if they don't have the account?
(And before you tell me I need to make the 3rd option possible - to let users buy as guests - we're not doing this, I asked.)