Okay
  Public Ticket #3557971
Redirect to previous page after completing the registration form
Closed

Comments

  •  1
    Jonathan started the conversation

    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:  redirect_b2b.png

  •  2,218
    WebWizards replied

    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

  •   Jonathan replied privately
  •  2,218
    WebWizards replied

    Thank you, I have set it up on the site!

    Please check and let me know if you have any issues,

  •  1
    Jonathan replied

    Incredible. It works perfectly. Thank you very much, the best technical service I've seen for a plugin.

    Greetings and good day.

  •   WebWizards replied privately