Membership subscription + discount

Is Wordpress Membership plugin adequate to simulate the exact same subscription method like WPMU DEV (https://premium.wpmudev.org/subscribe/)?

I tried the installation tutorial at http://premium.wpmudev.org/project/membership/installation/, got the page, but no links, just 3 items of the subscription levels.
Can someone please help explain what I may have done wrong?

Also, what other plugins do I need for the coupon code?

    Philip John

    Hey openube!

    I'd really like to help with this so it'd be good if you could let me know your exact set up.

    Can you take a screenshot of the subscriptions and levels you have created please? Also, a link to the site would be great!

    Also, it'd be useful to see what content you have on the site and how you've assigned it to members-only.

    Cheers,
    Phil

    Shean
    • 51
    • #2,332

    Hello Phil, the site is currently only on my hard drive, not hosted anywhere.
    Here is the snapshot.

    Shean
    • 51
    • #2,332

    Sorry, attachment failed. Here it is again.

    I simply try to do the exact same thing as wpmudev.org, as you see on the links above.

    Shean
    • 51
    • #2,332

    Just realized there is a sql error:

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 for query UPDATExxoai_m_membership_levelsSETlevel_count= '0' WHERE made by [...]

    Attached are 2 more screenshots for the subscription and the level (Paid Member). Besides comments, I also tried to add pages and post, but after update, the only thing showed up was the comments

    Philip John

    Hi Openube,

    Thanks for these screenshots - very helpful.

    The SQL error points to something going wrong in the database. Before we proceed it's worth fixing this.

    Can you de-activate and uninstall the plugin then remove all relevant tables from the database relating to Membership.

    This should flush out everything so you can start from fresh.

    Re-install the plugin and set up your levels again and see if you get the same error message.

    Thanks,
    Phil

    Shean
    • 51
    • #2,332

    Thanks for the suggestion. I'll try it.

    How about the coupon code, any suggestion on how to do that?

    Philip John

    Great, let me know how you get on!

    As for coupon codes that's not currently available but it has been discussed before. We often send out surveys to see what new features our members really want so look out for that, or request it as a new feature in the feature requests forum.

    Phil

    DavidM

    Hi openube, haven't heard from you in several days. Did the reinstall work out for you? Just wanted to be sure we check in with you before closing out the thread.

    Cheers,
    David

    Shean
    • 51
    • #2,332

    Hello David, been out of town for few days. I didn't do the reinstall, but simply reset the browser state and cleared the cache, and voila it's there.

    Thanks Phil for feature request form.

    Shean
    • 51
    • #2,332

    However still trying to figure out how to make it work with a complete protected site where only subscription registration is allowed. Here are some issues, hope you guys can help.

    (1) when user registers, before it gets to the subscription, username and password are already sent to the email, and therefore user can access site. (Note: general > anyone can register is not checked)
    (2) unless registration page is set on a page, otherwise membership plugin redirect is useless.

    I'm a bit confused by the flow. The "User Registration" under membership option is set to none, but with the behavior described above, it seems user can subscribe for free.

    Please help.

    Shean
    • 51
    • #2,332

    Somehow the buttons to choose the subscription are dimmed, just like my original screenshot.
    Tried to reinstall and install again, same thing. Please help.

    Philip John

    Hi Openube,

    I'm pretty certain that if a user doesn't make it past the subscription stage they will have an account but it won't have a subcription attached to it and therefore won't be able to see content protected by a subscription.

    Have you checked whether the user described in that process has a subscription attached?

    Phil

    Shean
    • 51
    • #2,332

    Hi Phil, the problem is not about users not passing subscription having an account but no subscription.

    Isn't the idea of NON FREE SUBSCRIPTION means, if one doesn't pass the subscription stage, they should not even receive any email with username and password?

    Also, what could have caused the subscription buttons not appear like the screenshot I provided before. I made sure that all levels and subscriptions are activated and made public.

    Philip John

    Isn't the idea of NON FREE SUBSCRIPTION means, if one doesn't pass the subscription stage, they should not even receive any email with username and password?

    Nope, as the user still needs a user account, which is created through the normal WordPress process. Then, a separate process adds a subscription to that user account.

    Without a user account Membership can not attached a subscription to that person. The only other way would be for Membership to do user management, which would take it out of the standard WordPress User management which would end up causing many problems down the road.

    That does make it possible to get a user account without having a Subscription but that's why the installation instructions take you through creating a 'free' level.

    Also, what could have caused the subscription buttons not appear like the screenshot I provided before.

    I'd have a look in your theme stylesheet to check that it isn't interfering with the display of the buttons. First check that the buttons are actually included in the HTML by looking at the source code. Let me know if you need help doing this.

    Phil

    Shean
    • 51
    • #2,332

    (1) Is there a way to alter the flow so email is sent only after they pass through the subscription?

    (2) For the subscription buttons, I tried both creating a page with {subscriptionform} and a separate php residing on the same directory as wp-login.php. None showed up. I checked the css, nothing in there set the radio button or the container for the radio button to none.

    BTW, I also did a reinstall of the whole wordpress setup, same thing on the buttons.

    Here is the generated HTML. Please disregard the difference in subscription as this is a reinstall.

    <h2>Step 2. Select a subscription</h2>
    <p>Please select a subscription from the options below.</p>
    <div class="subscription">
    	<div class="description">
    		<h3>One Day Pass</h3>
    		<p>$2.99 for one day access</p>
    	</div>
    </div>
    <div class="subscription">
    	<div class="description">
    		<h3>One Month Pass</h3>
    		<p>$14.99 one month access</p>
    	</div>
    </div>
    <div class="subscription">
    	<div class="description">
    		<h3>3-Month Subscription</h3>
    		<p>3 months access</p>
    	</div>
    </div>
    Shean
    • 51
    • #2,332
    <?php
    require( dirname(__FILE__) . '/wp-load.php' );
    if ( force_ssl_admin() && !is_ssl() ) {
    	if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
    		wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
    		exit();
    	} else {
    		wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    		exit();
    	}
    }
    ?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php wp_title( '&laquo;', true, 'right' ); ?> <?php bloginfo( 'name' ); ?></title>
    <link rel="stylesheet" href="<?php bloginfo( 'url' ); ?>/bin/style.css" type="text/css" media="screen" />
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    
    <div id="header">
    		<?php echo do_shortcode('[subscriptionform]'); ?>
    </div>
    </body>
    </html>
    Shean
    • 51
    • #2,332

    Tried it on twentyone theme, created a subscribe page using [subscriptionform] shortcode, and same thing happened. Is there any specific settings in wordpress that may have caused this?

    Philip John

    Hmm okay, that's troubling - next thing is to go over all over your payment gateway and shipping settings. Make sure it's all set up correctly.

    Something, somewhere is telling Membership that the subscriptions aren't available for some reason. As you've done a re-install that suggests to me it isn't a problem with the code anywhere but with a setting.

    Phil

    Shean
    • 51
    • #2,332

    I made sure that a gateway was set and active, but there is no shipping setting anywhere, also is there any specific wordpress settings I must set to support this plugin for no free membership?

    Philip John

    Hi Shean,

    You should set a stranger level as per the instructions. It may be that the non-member isn't able to subscribe because they haven't been given any sort of access by Membership.

    Let me know if that changes anything.

    Phil

Join 372490 happy members

Get access to our entire collection of epic plugins, astonishing themes & genius support

Become a member