Nav Menu Roles with Woocommerce Membership Integration
-
Hey All,
What an awesome plugin created, i have installed the plugin to work alongside woocommerce memberships.
I am having difficulty in setting this up as i see no option in my Menus.
I read the faqs and have sent a request out to my theme providers,
I wanted to know how i can set this up correctly with woocommerce memberships.
example, – free user signs up – sees a upgrade tab
upgrades- see the same menu but no upgrade option.how do i do this please
Thank you
-
It is covered in the FAQ under I’m using XYZ Membership plugin and I don’t see its “levels”?. you need to create a “pseudo” role.
Luckily for you, I have already written a bridge plugin for NMR and WooCommerce Memberships which is available here:
https://github.com/helgatheviking/nav-menu-roles-woocommerce-membershipsIf you find it valuable, please consider a donation:
https://www.paypal.me/helgathevikingyeh defo if it works i sure will,
how do i download this and will i still need to keep teh plugin nav menu roles?
hey Helga,
Awesome i downloaded the plugin and now see the menu options for the different memberships
free / silver /gold membership optionsi am attempting to add a menu tab for UPGRADE – and i have selected it via custom links and have tried the option from Products adding to the menu, with selecting the free option,
however it is not working, i even tried with a monthly demo user account and the option shows even though the upgrade option is only for free ?
i am sure i may be doing something incorrect in settings?
Thank you
Glad you found the zip file to download. From your screenshot and description I’m not quite clear what is happening for you. When you say “menu tab” which menu are you referring to? It looks like you have 2 menus plus the My Account tabs. Could you annotate your screenshot? That might help me follow along.
Though I do see an “Upgrade” link, and I’m guessing that the $0/month subscription enables the Free membership, so that seems right. What is happening that you aren’t expecting?
Here’s how I’ve set up my own demo site:
I created a “Free Plan” Membership
I configured this membership to be available to users who purchase “Subscription X”
I added myself as a “Free Plan” member
I created a menu item called “Upgrade” for the main menu
The menu is assigned a theme location, in Twenty Sixteen, I’ve chosen “primary menu”
Under Logged in users, I’ve selected the “Free Plan” checkbox.When I visit the website, I see the “Upgrade” menu item. When I log out or switch to a different user, I no longer see the menu item.
Let me know if that helps.
Hey Helga,
Thank you ver much for your help ??
“Though I do see an “Upgrade” link, and I’m guessing that the $0/month subscription enables the Free membership, so that seems right. What is happening that you aren’t expecting?”
That is correct it is $0/ Subscription, it should only allow Trial subscriptions to see this, when they upgrade their membership plan they should not see “UPGRADE” Tab.
Are you using Woocommerce Memberships and Woocommerce Subscriptions>?
Here is my set up For Products:
Trial / monthly / annual products is set up as a simple subscription linked to grouping product‘Product Membership’ this is for the upgrade option for users to upgrade their membership.
here is the link : https://imgur.com/a/4aGysMembership (Woocommerce plugin ‘Membership’) here is teh set up of the twi plans https://imgur.com/a/4aGys
Really unsure you have any screenshots on your set up for guidance,
It is a shame Woothemes did not create a docs guide for the interlinked of these two plugin it promotes. ;(
Thank you for you help again ??
Once a user upgrades, does she have both free and upgraded memberships active? If so, that would explain why the user is still seeing the “Upgrade” menu item.
It appears that it is entirely possible for a user to have multiple, concurrent, memberships.
https://imageshack.com/i/pnkfCGnop
So I thinkwhat you’ll need to do is find a way to configure the trial membership to end as soon as the user upgrades.
It is a shame Woothemes did not create a docs guide for the interlinked of these two plugin it promotes.
This plugin is something I was hired to build and released afterwards. It isn’t officially supported, by myself or by Woothemes, though I ought to right a little docu up for my long-suffering blog.
Hey
Thanks for your response.
“Once a user upgrades, does she have both free and upgraded memberships active? If so, that would explain why the user is still seeing the “Upgrade” menu item.”
i think this would be a possibility,
“So I thinkwhat you’ll need to do is find a way to configure the trial membership to end as soon as the user upgrades.”would you know how to do this set up correctlly, i am asking woothemes but we are going round and round, as trial users are having two membership riunning at the same time
and i am using their subscription plugin with it also.do you have any screenshots or any guide to help me with solving this, which i think is the conflict like you said ??
Thank you
Well we’re way beyond Nav Menu Roles now, but here goes:
First, according to Memberships docs, you can handle upgrading/downgrading via Subscription Switching. This involves creating a variable subscription and using the different variations to control which membership level is granted.
https://docs.woothemes.com/document/woocommerce-memberships-subscriptions-integration/#section-7Define attribute for variable product
https://imageshack.com/i/pltGurwrpDefine variations based on attribute
https://imageshack.com/i/pl1b9BSkpWe can limit the subscription to “one of any kind”, so that whenever we visit the product page we’re redirected into the “subscription switching” that controls the upgrade/downgrade process. This will be helpful when creating a link to the product for your menu.
https://imageshack.com/i/poG0iTdypSet up your membership plan granting access to people who purchase a specific variation of the Membership Variable subscription
https://imageshack.com/i/poEnT8FepSet Subscriptions options to allow switching between subscription variations
https://imageshack.com/i/plWH9QBwpAfter purchasing the new membership is created
https://imageshack.com/i/polrePvqpWhen viewing the subscription in your account you will see an upgrade/downgrade button
https://imageshack.com/i/plPGIPytpThis will send you back to the product page with instructions to choose a new subscription
https://imageshack.com/i/pnnASLukpAdding a different level to the cart. The cart recognizes that this is an upgrade
https://imageshack.com/i/pn09hdVGpVoila, after checkout is completed the user’s old membership is cancelled and the new membership is activated.
https://imageshack.com/i/poQ8Uye3p——–
Now, you should be able to create a menu item for the product, name it “upgrade” and only display it to your trial members via Nav Menu Roles. When they upgrade via subscription switching their membership will be switched automatically and they will not have concurrent memberships. I’d like to say you could even write a custom link that defines the proposed membership level, ex:
https://www.sandbox.dev/shop/membership?attribute_level=gold
but currently that attribute parameter is dropped during Subscriptions’ redirect, so that’s a no-go for now.
But otherwise, I think this is what you were describing.
Hey Helga, Awesome reply and will attempt it,
one quick question do i need to create 3 subscription Products set as Variable Subscription i.e.
Products / Trial / Monthly / Annual
and all 3 woudl have three vairable subscriptiosn set ?
Hey
just testing out and running in to some challenges.here is my set up as guided ??
Product Set up: https://postimg.org/gallery/w7wn9ins/1b2f6ad2/
Membership Plan : https://postimg.org/image/ightmdak1/5ef71616/
Upgrade Menu: https://postimg.org/image/feq0ymd4n/0da05d77/
Here is when a user tests out the demo, and purchases trial and tries to upgrade, then becomes an issue in regards to cannot add product ?
https://postimg.org/gallery/2pzg6cyma/3179a123/Everything looks fine in your screenshots. As you figured out, you need 1 variable subscription product with multiple variations. Do you have prices configured for each variation? That’s the main reason a product would fail the
is_purchasable()
test.If that doesn’t solve it and you want, you can send me admin credentials via my contact page and I will take a look.
hey,
i added the prices as suggested, and have saved only one membership per subscription.
however i am still running into challenges, as it wont let me add upgrade.
I also noticed on Membership Plans thats Trial user was getting access to course not allowed, :S
Thank you very much i will email you over now with my credentials
also paypal test is : [email protected]
- The topic ‘Nav Menu Roles with Woocommerce Membership Integration’ is closed to new replies.