GithubHelp home page GithubHelp logo

Comments (34)

AAnkudovich avatar AAnkudovich commented on June 21, 2024 1

I almost sertain in the current state of the plugin you cant

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

Same issue here
your old memberships are still available just go to yourdomaim.com/wp-admin/admin.php?page=pmpro-membershiplevels&edit=LEVELID

LevelID needs to be changed to your membership id (they auto increment so if you dont know your ones try 1 then 2 and so on)
That is to edit memberships .

Adding to groups i still havent worked out.

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

Thanks for such a quick replay and i can see my old membership

But how can i add that membership in as group as you can see in screen short and even i can not add new membership in demo group

any idea?

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

Groups are used to determine what memberships can go in parallel and which cant. im afraid i ended up skipping it and restricting users through front end from getting memberships of same group allocation.

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

ok
i have scenario like i want give access of two different membership to my users under one access both membership level have different price

how can i do i do not want option like separate domains

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

that should work perfectly fine

you can create a custom pricing table by creating a template for /membership-account/membership-levels/

on the bottom point it to checkout pages

<a href="/membership-account/membership-checkout/?level=15" class="btn btn-primary" style="width: 110px;"> Buy It </a>

You can also disable the button by checking for the membership like so

   <a href="/membership-account/membership-checkout/?level=15" class="btn btn-primary" style="width: 110px;" <?php if (is_user_logged_in()) { if(pmpro_hasMembershipLevel(array(15))){ echo 'disabled';  }} ?>> Buy It </a>

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

yes but how it work suppose

page A is only access by Membership A
page B is only access by Membership B

Now if any user purchase the Membership A and he want same access of Page B to if user purchase Membership B than they remove form accessing page A that is what main issue

Thanks

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

The function i use is deep inside of plugin code and works wonders

<?php if(pmpro_hasMembershipLevel(array(15))): ?> 
          <div class="page-content">
            <?php the_content(); ?>
            
          </div>
<?php else: ?> 
           
          <h3>Buy our membership</h3>
          
          
          <?php endif; ?>

pmpro_hasMembershipLevel(array(15)) will check if user has the membership id 15 (change to your membership number) you can add comma and additional memberships too (ie. pmpro_hasMembershipLevel(array(15,16,1,7)))

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

If membership matches that in if statement the user sees post or page content else it shows Buy our membership

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

thanks

my only concern is if user have one membership already and purchase the another membership with exist login access can they access both restricted pages

Hope you understand

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

Yes. account will return true for both if user has two memberships

If user has membership 1, 2

pmpro_hasMembershipLevel(array(1)) = true
pmpro_hasMembershipLevel(array(2)) = true
pmpro_hasMembershipLevel(array(1,2)) = true
pmpro_hasMembershipLevel(array(3)) = false

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

thanks

let me test i am afraid because in back end it show as membership which is last buy that is why i am confuse

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

U mean in Database it shows singe memberships ?

Check what you see on this /wp-admin/admin.php?page=pmpro-memberslist when looking at an account with 2 memberships it should show something like this (comma sepparated membership names)
screen shot 2017-02-22 at 10 57 50

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

Thanks

but i can see last buy membership i can access the page with associate with membership b (Note: i have not used multiple membership add on)

image

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

yes now if you activate multiple memberships and you buy membership A it should show both there

Note : this addon doesnt work with paypal

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

alternatively go into your database and run equivalent of this (i use mysql)

INSERT INTO wp_pmpro_memberships_users (user_id,membership_id,initial_payment,cycle_period,status,startdate,enddate) VALUES (30,1,PRICEOFMEMBERSHIP,"","active",'2016-12-01','2017-12-20');

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

Thanks

now i active the addons and check with stripe my membership list page blank and memberlist doesn't update

image

image

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

front end

image

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

It wouldnt be on the level page but on members list

What payment gateway are you using as this looks a bit different to anything i have seen

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

please check above comment i have upload list page and i am using stripe

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

can you show me the following page /wp-admin/admin.php?l&page=pmpro-memberslist&s=aakankshk

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

Thanks now it is showing

image

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

but i am still unclear about this why my members are level are blank list

image

if i want add two membership as group how can i add

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

The addon seems to have flaws and doesnt seem to be supported by original authors so we are unable to obtain a reason for it

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

ok and even membership level page having a issue is it default behavior of this plugin

image

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

before i can see all member level added now it is blank

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

i created a custom UI so i would not see it at all

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

do you have any demo i can see please?

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

/membership-account/

screen shot 2017-02-22 at 11 58 03

And i overwrote /membership-account/membership-levels/ to act as a pricing table

screen shot 2017-02-22 at 11 57 15

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

ok i have already my site having 200+member and 5 membership level and if i use this addon does not it affect to my site or loose any data?

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

i am on similar numbers and lost nothing . i would advise testing it locally rather than going live with all of it right away. issue i opened a week or so ago is my only minus to this as memberships stopped to expire but the solution was given there. also backticks need to be fixed same as the open pull request on it

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

ok thanks for all help i looking forward to implement this as soon as possible if having issue i will add new issue

once again thank you so much for all help and support

from pmpro-multiple-memberships-per-user.

aakankshk avatar aakankshk commented on June 21, 2024

thanks

from pmpro-multiple-memberships-per-user.

AAnkudovich avatar AAnkudovich commented on June 21, 2024

Glad to be of assistance

from pmpro-multiple-memberships-per-user.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.