Public Ticket #3557971

Redirect to previous page after completing the registration form

Closed
Comments
3 Tickets 1
Jonathan started the conversation 3 years ago on January 9, 2024 at 5:22pm

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.

Attached files:

2,762
KingsPlugins replied 3 years ago on January 10, 2024 at 5:09am

Hi Jonathan,

I'd be happy to work on setting this up for you. 

Basically it would work like this:

1. I'd change your code so that the button you added redirects to the registration page + a URL parameter such as ?redirect_to=current product

2. I'd add a snippet to redirect after registration based on this URL parameter.


Is it possible to share a backend login to your staging site with us? It would be easiest if I could work on it directly, as I also need to edit your existing code.


Kind regards,

Stefan

Sign In