Displaying Subscriptions on seperate Pages

I have read many post and cannot find the solution. I need to have my subscriptions to separated and not visible to everyone. I would like them each listed on separate pages. Help…

  • digitsoft
    • The Crimson Coder

    It is possible, but requires some coding. My example only displays Level 1…it doesn’t handle displaying different levels by page.

    1. Edit /wp-content/plugins/membership/membershipincludes/includes/subscription.form.php

    2. Insert these 2 lines at line 22

    if ($subscription->id == 1) //Added by Rob

    { //Added by Rob

    3. Insert this line at line 65 (after inserting above)

    } //Added by rob

    The top area insert should look like:

    $subscription = new M_Subscription($sub->id);

    if ($subscription->id == 1) //Added by Rob

    { //Added by Rob

    ?>

    <div class=”pricebox subscriptionbox” id=’subscriptionbox-<?php echo $subscription->id; ?>’>

    The bottom insert area should look like:

    </div>

    <?php

    } //Added by rob

    }

    do_action( ‘membership_subscription_form_after_subscriptions’ );

    Beyond this if you want to display certain levels based on page you’d need to add logic based on page name: get_the_title($ID) OR page id: get_page( $page_id )

    Enjoy…and click the Say Thanks button above if it helped you!

    Rob

  • aecnu
    • WP Unicorn

    Greetings jpickle,

    I agree that Rob’s coding is pretty basic and good too .

    No the program does not allow for it and we can always put it in as a feature request, bottom right corner, red banner request a new plugin, theme or service.

    However, since this is the first time I have ever heard of this request and therefore the popularity marginal at best, it is unlikely to be introduced, but I certainly do not know everything.

    Cheers, Joe

  • digitsoft
    • The Crimson Coder

    Sit down…I have the solution for you…

    @aecnu – grab this and attach it: http://www.mediafire.com/?girqd4k9pcj4c9b

    Before you begin – backup this file and then delete it (or just rename it) – we’re replacing it:

    /wp-content/plugins/membership/membershipincludes/includes/subscription.form.php

    Put the attached file in the directory above and then do the following:

    1. Create your subscription levels (finalize them now instead of later)

    2. Create pages with the EXACT name of the levels you created above

    3. In each page for each level add this shortcode: [subscriptionform]

    Now it will automatically display only the level corresponding with that page :slight_smile:

    Enjoy!

    Rob

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.