• Resolved tiicaa

    (@tiicaa)


    Hi I am using your plugin to set membership levels on my site without allowing access to content before membership assignment. So in the page settings of the plugin I have set the “Membership Levels Page” and the “Payment Page
    It turns out that if I access only the payment page link the first membership I signed up for comes as default from the form, although the subscription is free I don’t want just anyone to sign up as only selected people will get the link to the Membership Levels Page to choose from and only then through that get to the sign up. I even locked the page as a child page and this solved my problem with direct access to it, as the Membership Levels Page is password locked.

    The problem is, I will have other pages with association levels and when selecting the level the user will always fall into that page, and that way I will not be able to assign it as a “child”.

    That said, I would like to know how I can take away this default association leave it blank, so even if someone tries to sign up it will be missing because the person has no level choice, and even if they get to a levels page they will have no password because each one is locked individually with Password Protect WordPress plugin.

    ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @tiicaa

    Thank you for reaching out to Paid Memberships Pro.

    This currently will require some custom code as we default to the membership level when no ?level=X parameter is found.

    What you can do is use the template_redirect hook and see if the ?level=x parameter is valid or in the URL. If it’s not, you can redirect your users back to the level select page or any page you need.

    The closest solution we’ve written about can be found here – https://www.paidmembershipspro.com/redirect-away-from-checkout-if-user-doesnt-meet-membership-requirements/

    It does not exactly fit your requirements here but is close enough to get started by tweaking some logic.

    I hope this helps get you started.

    Thread Starter tiicaa

    (@tiicaa)

    Well as the link sent is blocked, I could not view the content, so here a reply without any procedure.

    Since I need an immediate solution, here’s a workaround for those who don’t have access to the content – I renamed the id of any association to 1 and in that association I closed the subscriptions, so the plugin looks for the association page, which in my case is blocked so soon it won’t have access. It also works if I assign it to a page with a message.

    Plugin Author Andrew Lima

    (@andrewza)

    I’m glad to hear you found a workaround and thanks for sharing this workaround – closing the membership to new signups can help if you don’t need people to signup for that particular level.

    Here is the code snippet that is available online – https://gist.github.com/strangerstudios/d417b530e77c2f8f76fc#file-my_template_redirect_upgrade-php

    I hope this helps give you an alternative solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove the default membership level from the Payment Page?’ is closed to new replies.