Adding dynamic parameters to the Signup redirection link Answered

Post author
Omar Hossam

Hi ,

I want to redirect after signup to a page with the email from the signup page passed as a parameter , example : 
www.example.com/checkout?email=test@test.com

 

Comments

8 comments

  • Comment author
    Duncan from Memberstack

    Hey Omar 👋 I can help you create the custom code for this.

    Before I create the script - can you answer a few quick questions for me?

    1. What is on this page → www.example.com/checkout?email=test@test.com
    2. Can you share a link to your current signup page?
    3. Why is this important to you? (Will help me think of the best solution).
    0
  • Comment author
    Omar Hossam

    Hi Duncan , Thanks for your response 

    1- it's going to be https://www.wehive.us/checkout?email={user's email}?name={ user's name }
    we set a custom stripe page there to collect home owner's credit cards before we match them with Pros to finish their jobs 

    2- select a service from here https://www.wehive.us/services , then submit the job details , when you submit the job it will redirect you to a page that has a hidden MS form that auto signs you up then it will redirect you to the credit card collection page https://www.wehive.us/checkout

    3- this is important because we want to match the credit card collected with the user's email , because they might be using different email for their credit card and the matching might fail in this case

    1
  • Comment author
    Duncan from Memberstack

    Thank you for sharing this 🙏

    How soon do you need a solution? I'll see what I can do next week.

    In case you want to get a head start... my plan is to pull the name and email from your signup form, and add it to the signup form redirect. Memberstack will respect whatever is in that data-redirect.

    I believe my solution will be somewhat similar to the body code of this snippet. https://docs.memberstack.com/hc/en-us/articles/12584131679515--Code-Auto-Open-Checkout-Based-on-URL-Params

    0
  • Comment author
    Omar Hossam

    Hello Duncan ,

    Thanks for your response , we are launching in Tuesday , so we need to be testing it monday max if possible please .

    1
  • Comment author
    Duncan from Memberstack
    • Edited

    Hey Omar 👋 In that case, I highly recommend working with a developer to create the code you need.

    I'm happy to try to help you for free, but I have a lot on my plate right now. I can't make any promises that I'll have time to finish the code before Tuesday or that the code will work the first time. 

    Is there someone on your team who can help you with the code? If not, I recommend finding a talented developer on Upwork who's good with javascript.

    You can share our developer docs with them. https://memberstack.notion.site/Developer-Docs-70831a87cf6146edaa86af70ba6d85a3

    0
  • Comment author
    Omar Hossam

    Hi Duncan , I've created a workaround for this , but I need to disable signup redirection I've added ( # ) to the redirect URL of the signup form
    but when signed up it keeps loading like that , I want to show the thank you element of the form but most importantly not to redirect to anywhere

    0
  • Comment author
    Duncan from Memberstack

    Hey Omar, I spend about 30 minutes trying to get this to work, but I hit a dead end. For some reason, I'm unable to override the form redirect using code.

    Seems like Memberstack looks at the form redirect on page load and uses that to determine the redirect after signup. That or I'm missing something in the code. 

    As for the question/problem you shared above there's no way to display the success state (that I'm aware of). You'll need to redirect them to a new page. 

    0
  • Comment author
    Omar Hossam

    Thanks Duncan

    0

Please sign in to leave a comment.