Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – Upgrade to New Membership Level while logged in
Tagged: emember upgrade button, membership, membership upgrade, redirect url shortcode, upgrade button shortcode
- This topic has 16 replies, 4 voices, and was last updated 6 years, 7 months ago by admin.
May 17, 2013 at 7:20 pm #9100
Love eMember and you guys offer the best support of any membership plugin I’ve encountered! Thanks for the awesome job.
Now, on to my question.
I would like to move my users to a new membership level based on their completion of the previous “module”. I understand the concept of sequentially upgrading membership levels, and that is another option, but first I’d like to explore the possibility of doing it a different way.
I discovered that you already have a shortcode to display an “upgrade” button that lets logged in users upgrade to a new membership level. This works great and actually moves the user to the new membership level. However, in order to see the new content, the member must loged out and then log back in.
What I’d REALLY, REALLY like is if when the user clicks that button, they get redirected to the “after login” page for their new membership level AND they get put on the autoresponder list for that new level as well. This would allow me to display their new content to them immediately.
This seems possible to me, but then I know nothing about php and am not a coder.
BTW, I’m using eMember version 8.5.7May 18, 2013 at 7:05 am #55706
Thank you for your kind words. Glad to hear that you like the plugin
I kind of understand what you mean but the “after login” redirection only takes place after a user has logged in. I think if you do the following it will work better for you.
You can specify a different “Thank You” page for your “upgrade” buttons. This way when a member has paid for an upgrade they will land on this special thank you page. You can put instruction like the following to guide them.
Please logout and log back in if you have just paid for an upgrade. This will apply the upgrade to your account.
You can make a logout link on the thank you page like the following so the user can click on it easily:
Alternatively, you can use a link like the following as your “Thank You” page for your upgrade buttons so it lands on that page and automatically logs the user out after they have made a membership upgrade payment:
[http://www.your-site.com/thank-you-page?event=logout]May 18, 2013 at 6:47 pm #55707
You don’t seem to quite understand what I am trying to do.
It’s not a paid upgrade, so none of your suggested solutions world work for me.
eMember already has the shortcode [wp_eMember_upgrade_membership_leve_to level=2]
This creates a button that works to upgrade the logged in users membership level to the level specified. There is no login required — no payment. It simply upgrades the membership.
This is great as far as it goes.
What I would also like is for that button to also send the user to new page AND actually subscribe them to the autoresponder for their new membership level.
As the button works now, it keeps them on the same page but adds the message “your membership has been upgraded” and does NOT subscribe them to the new autorespnder.May 18, 2013 at 11:18 pm #55708
I see what you mean. Yes that can be done. I will look into it.May 30, 2013 at 5:53 pm #55709
Hi, just checking in to see if you’ve come up with a solution to my inquiry yet.
The email that accompanies the new member level doesn’t have to be sent immediately after they are updated to their new level… it can take a day or two to go out… so if this was triggered via a cron job, that would be okay.
Also, it would be nice if they were automatically forwarded to welcome page for their new membership level as set in eMember, but if that isn’t possible, I’m fine with setting them manually when I add the upgrade button.May 31, 2013 at 2:49 am #55710
Yeah this option has been added to the plugin but we haven’t released that build yet. I have just sent you an email with the updated build of the membership plugin.
You can now use the shortcode like the following which will redirect to a page (that you specify) after a user hits the “update” button:
[wp_eMember_upgrade_membership_level_to level="2" redirect_to="url-of-the-page"]May 31, 2013 at 9:06 pm #55711
I’ve gotten the new build installed on my site and the button works… mostly.
Here’s the page if you want to take a look:
It looks to me like the plugin is confused about whether it should reload the page and so the “your membership has been upgraded” message OR redirect. As a result, part of the current page (where the button is) reloads before the user is redirected. This looks clunky. I’m afraid people will click away before they process completes.
Could you add a checkbox somewhere so we can choose to have this shortcode do EITHER the refresh or the redirection? Or drop the refresh code entirely?
Also, what about the email subscription that corresponds to the new membership level? How can I get that to work?
Thanks for creating such awesome plugins and providing even more awesome support. You make everything else pale in comparison.June 1, 2013 at 5:49 am #55712
It will do the autoresponder signup too.
Regarding the redirection… it is a little tricky because the redirection happens in the middle of the page. You can’t redirect in the middle of the page without doing a refresh.
The best option would be (if you don’t like the way the redirection works) to turn off the redirection in the shortcode and manually have links to the welcome page of all your membership level.September 4, 2013 at 12:32 am #55713
I am back to working on the site with the “upgrade while logged in” feature and this option is working really great.
I would like to change the button, though. Right now, it says “upgrade” in a very plain button. I’d like to be able to replace that with an image, but if that isn’t possible, at least change the color of the button and the text. Can you help me with this?
You guys rock.September 4, 2013 at 6:00 am #55714
Can you please share the link to the page where you have that upgrade button so I can take a look and inspect it?September 4, 2013 at 3:32 pm #55715
This page has the upgrade button:
But you have to be logged in to view it. You can sign up for a free account here:http://dangersexmagic.com/sign-up-for-dsm-101/September 5, 2013 at 3:04 am #55716
To customize the text that is used for the button use the following:
[wp_eMember_upgrade_membership_level_to level=2 button_text="Upgrade Button Text"]
Here is an example CSS code that you can use to customize the appearance of the button:
border: 1px solid #D2D2D2;
padding: 5px 10px;
Obviously you can change the color and add other CSS properties to it.September 17, 2014 at 5:36 pm #55717ellie4905Member
How can I use both of these shortcodes together?
[wp_eMember_upgrade_membership_level_to level=”2″ redirect_to=”url-of-the-page”]
[wp_eMember_upgrade_membership_level_to level=2 button_text=”Put Whatever Here”]
I want to change the text on the button, but also use the redirect feature…pls adivse?
Also, any idea why I am getting a yellow box around the area?
P.S. I am redirecting to a page that is different from my Thank You page, hence the need to use thisSeptember 17, 2014 at 11:40 pm #55718
You can add both the arguments in the shortocde. Here is how:
[wp_eMember_upgrade_membership_level_to level=”2″ redirect_to=”url-of-the-page” button_text=”Put Whatever Here”]September 19, 2014 at 10:09 pm #55719ellie4905Member
cool beans…thanks, not sure what I was doing wrong – thought I tried that.
So, one more question…the redirect IS working, however my member isn’t being upgraded. When I logout and back in, it shows them at their old level. Any idea why this would be?
Secondly, I put the button in between section protection for the old level…so the user still sees it when they login (because they’re not being upgraded – just redirected).
Any thoughts on why this would be? If I didn’t use section protection would the button “go away” once the user clicked it? (I’m guessing no – but asking just cause that would be pretty cool for my purpose – I’m looking for a disappearing button, or a way to make a product button go away after a user has clicked it)
As always … Thanks for your awesome support and help!
- You must be logged in to reply to this topic.