My website has automatic approval set up for registered users. Unregistered users cannot view prices or shop on the website.
I have added a button via code on all products that only unregistered users can see and when clicked are redirected to the registration form.
I want to create a code with a condition. If the user was on a single product page, after registering I want him to be redirected to the product he was on again. So the user doesn't have to navigate all over the web and search for the product again.
Is it possible to do this? Could you please help me? Thank you very much.