• Resolved chzumbrunnen

    (@chzumbrunnen)


    When you login to WooCommerce, you’re normally redirected to the my-account page.
    On this page there is a tab for “my content”. I want a user to directly land on this page when logging in.

    Problem is: this is not a “real page” but a url like this:

    https://mysite.com/my-account/members-area/1008/my-membership-content/

    Where 1008 is the ID of the membership plan for which the member is viewing accessible content / products / etc, and the “my-membership-content” will adjust based on which section is viewed.

    Screenshot from the https://docs.woocommerce.com/document/woocommerce-memberships-settings/ page where this info is coming from:

    2018-11-07_15-53-43.png

    https://docs.woocommerce.com/document/woocommerce-memberships-faq/ answers the question:

    Can I redirect members to their content after purchase?

    with

    As a customer can purchase more than one membership at a time, Memberships can’t reliably redirect a customers to members content — a purchase note is a much better solution for this. Ask customers to go to the “My Account” page and click “View” for the membership to see the membership content and perks.

    I understand but don’t agree.

    The my-content link “knows” of different memberships, so it should be possible to redirect the user after login. But I can’t find a way ??

    Any hints or tipps?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nazmul Hassan

    (@nazmulhassann20)

    Hello,

    We have added a new custom role based redirect. You can check this plugin.

    Thread Starter chzumbrunnen

    (@chzumbrunnen)

    Hello Nazmul

    Thanks for the update.

    From the screenshots it’s unclear if the plugin does what I need.

    Can I redirect a user (based on role maybe) to “members area” (which sadly is not a page but an endpoint)?

    I cannot redirect to a “Custom Redirect URL” because I don’t know the URL which contains the membership-plan ID. I only know, I’d like to redirect to the “members-area”.

    If a “User Role Based Login Redirect” can be redirected to the “Redirect Page” “members area” (which – again – is not a page but an endpoint) then it would definitively solve my problem.

    Plugin Author Nazmul Hassan

    (@nazmulhassann20)

    Hello,

    In the other version, you can redirect the user to a specific URL. Just you have to insert the User ID to redirect to specific URL. But if you just copy the slug that would not work. You have to insert the full URL here- https://www.dropbox.com/s/7cimtycmlgr1rao/Screen%20Shot%202018-11-26%20at%209.26.43%20AM.png?dl=0

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘redirect to my-membership-content’ is closed to new replies.