cpinc Posted February 23, 2019 Posted February 23, 2019 There will be two ways for people to become members of my community. The first is by directly buying a monthly subscription. That's easy enough. The second is by buying another product I sell on a completely separate platform which includes a membership to the community as a bonus of purchasing that product. In that scenario, the person will complete their purchase and end up on a 'success page' that contains a link to https://www.mycommunity.com/register/ for them to create their account. However, I just noticed that my other platform adds useful query string parameters to that url which contains info about the purchase (order number, name, email address, etc.). Here's an example of what that link ends up looking like... https://www.mycommunity.com/register/?cart[account_id]=00000&cart[account_name]=acct&cart[customer]=test%2Bgsdg%40gmail.com&cart[customer][firstname]=Test&cart[customer][lastname]=Test&cart[order][0][t]=product&cart[order][0][id]=1&cart[order][0][n]=Membership&cart[order][0][p]=2900&cart[order][0][q]=1&cart[order][0][po]=7696&cart[order][1][t]=product&cart[order][1][id]=1&cart[order][1][n]=Membership&cart[order][1][p]=2900&cart[order][1][q]=1&cart[order][1][po]=7696&cart[order_currency]=USD&cart[order_id]=19421&cart[order_total]=2900&cart[payment_processor]=stripe&cart[product_id]=1&cart[purchases][0]=1&cart[purchases][1]=1&cart_hash=00000000000000000000000 So I was wondering... is there any way to pass any of this information into the registration somehow? So that, for example, the order number from the query string gets included/associated with their account in my community? Or something similar to that? Also, would there be a way to perhaps prefill the 'Email Address' field of registration with the email address from the query string? Just so they have one less bit of info to fill out when signing up. Thanks in advance for any help.
bfarber Posted February 25, 2019 Posted February 25, 2019 You would need a customization in order to capture the information and do anything with it. You can pass any query strings you want to any page, but they're ignored if the backend script doesn't expect or do anything with them.
cpinc Posted February 25, 2019 Author Posted February 25, 2019 Thanks @bfarber Is this the kind of thing I'd need to hire a developer for?
Joel R Posted February 26, 2019 Posted February 26, 2019 Yes, this is customization that extends outside the scope of IPS. With that said, what other platform are you using, and maybe we can help advise you? For example, we've seen integration scripts with Discord, Slack, MediaWiki, and WordPress. In general, if your other script supports oAuth 2, then you can set up an oAuth login. If your script uses something else, you'll need to hire a third-party provider. https://invisioncommunity.com/third-party/providers/
cpinc Posted February 26, 2019 Author Posted February 26, 2019 Thanks Joel. The other platform is a shopping cart called ThriveCart. I use it to handle the checkout process of an ebook I sell. Once the payment is complete, the buyer is sent to a success page where they can download the ebook. That page also has a link to my community's registration page, which ThriveCart automatically appends all of those query string parameters shown in my original post (such as their ThriveCart order number) to. So if there was some way to have the buyer click that link, fill out the IPS registration form and become a member of my community WITH their ThriveCart order number somehow being attached to their account... that would be perfect. So I wouldn't actually need the two platforms to share a login or anything like that. I'd really just need ThriveCart to pass the order number in the query string to my IPS community. Make sense?
Adriano Faria Posted February 26, 2019 Posted February 26, 2019 I do something like that on my Invite System: it goes to to the registration screen with email and invitation code already pre filled in the form. You can buy the app on the marketplace and see how it is done or drop me a PM if you need help with a custom plugin.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.