• I have a very weird issue. I am using the woo commerce integration. When a use is not logged in, and they click the take this course button, they are taken to Woo to pay. This works as expected.

    If a use is logged in, and clicks the take this course button, an order is created in Lifter marked as Free, and the user is not sent to Woo to pay.

    I would post the url here, but I don’t want to give everyone access via this backdoor.

    Thanks!

    https://wordpress.org/plugins/lifterlms/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hey WPCrafter,

    As per our WooCommerce setup instructions you *must* provide a price for the LifterLMS Product otherwise the behavior you’re experiencing *will* happen.

    You can read more here but, in short, the “Take this Course” button acts differently for free and paid courses (by design) so the redirect to WooCommerce never occurs if there is no price on the LifterLMS Course as it behaves like a Free Product.

    Just add a price the Price to the LLMS Course and you’ll be good to go and sorry for the confusion.

    Thread Starter Adam @ WPCrafter

    (@wpcrafter)

    I made a second topic after this one. Not sure why it is not visible though.

    Thats not it. I did some troubleshooting with a few of my followers.

    The had membership access. They were logged into my site. I removed their membership access. They still had the membership access though even though I removed it.

    Then in troubleshooting, if they logged out of my site, then tried to log back in, their membership access was FINALLY removed.

    So the problem is, if someone is logged in and their access is removed for a refund or something like that. They retain access unless they log out and there is no easy way to for everyone to log out.

    Make sense???

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note: the second topic was deleted. Duplicates often are, please keep this topic here.

    Thread Starter Adam @ WPCrafter

    (@wpcrafter)

    Hi Jan, I would have, but it wouldn’t let me edit the org topic, and it wouldn’t let me add anything to it. So there is no option to add more info to make it helpful for the person you are asking for help from.

    @wpcrafter,

    You can always simply add another reply with additional information.

    First off, people can always log out. LifterLMS adds a signout link to the “My Courses” page, you can copy that URL and add it to a menu for quicker access to a sign out button.

    Second, we’ve been slowly overhauling our enrollment and de-enrollment methods since version 2.0.0. This manual remove function was originally created for Courses and was rapidly ported to Memberships and I have, now obviously, not reviewed that port closely enough before it was shipped. I’m terribly sorry, we’re not fully removing memberships using the manual enrollment functions. I’ll get this fixed immediately (it’s a simple fix). Look for a patch in the next few hours to resolve this.

    I’ll post here again when it’s released.

    Thread Starter Adam @ WPCrafter

    (@wpcrafter)

    Thanks for the response. I was dreading having to change the WP Salts in order to force everyone out. I spend some good time trying to get this bug figured out, so thank you for being willing to make a code fix, as I would imagine this would effect all users of the platform.

    @wpcrafter,

    Please give LifterLMS 2.7.6 a try. Unfortunately students you have *already removed* will still be in the limbo position they’re currently in. I tried but I can’t find anyway to create a small migration script to fix this.

    However, you can simply add those students manually back to your membership and then immediately remove them and then they’ll be out of the limbo I created for them.

    Let me know if you need anything else and thanks for finding this for me.

    Take care,

    Thread Starter Adam @ WPCrafter

    (@wpcrafter)

    Thanks Thomas! I will mark this as resolved and if I notice that it is still an issue, I will start a new topic.

    Thread Starter Adam @ WPCrafter

    (@wpcrafter)

    Hey Thomas, unfortunately this is still an issue. Just verified it.

    I manually added them back to the membership, the I removed him. Then I removed their orders, then I removed access to any courses.

    After that, they still have access, and a new order is created.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side side note:

    Thanks Thomas! I will mark this as resolved and if I notice that it is still an issue, I will start a new topic.

    If it’s the same problem then don’t start a new topic. Just marked this back to “unresolved” in the right sidebar and continue this topic.

    Duplicate topics get closed or deleted when found.

    @wpcrafter,

    I was able to recreate your initial issue following steps you provided:

    if someone is logged in and their access is removed for a refund or something like that. They retain access unless they log out and there is no easy way to for everyone to log out.

    This is no longer an issue.

    I am very confused about your new report that after deleting the order the order is recreated.

    Are you talking a WooCommerce order or a LifterLMS order?

    How are you confirming that access has or has not been removed?

    Are you testing this yourself or are your users relaying information to you? If you’re simply being relaid information can you please run a few tests yourself and verify yourself that access is not removed?

    Are you removing from Courses AND Memberships or simply the membership?

    If you remove from a membership members are not automatically removed from associated courses so you need to process those removals manually as well. This is a pain but there’s a few very complicated and important reasons why we don’t do this (and we’re working really hard to resolve this in our next major release that’s in the works).

    Thanks,

    Thread Starter Adam @ WPCrafter

    (@wpcrafter)

    Hey Thomas.

    I was referring to a Lifter order.

    The info was all live over live chat with a user that has been helping me troubleshoot, and I was watching his actions.

    I am going to keep monitoring this, but here is what I did that may have resolved it, maybe.

    First, I would like to suggest adding some info to the docs regarding caching. Lifter is not compatible with any caching from my testing. If someone is using caching on their site they have to be able to exclude all lifter pages. Thankfully I use wprocket which allows this, but I don’t think all caching plugins do.

    This is how I think I resolved it, I reset the WP salts which forces everyone to log back in. Then I added the caching exclusion, and it seems to be resolved now, but I am going to have to keep an eye on it.

    @wpcrafter,

    Thanks for the update. That seems absolutely plausible. LifterLMS has a lot of dynamic content that would absolutely be broken when cached. I’ve never had anyone report a caching related issue before and, to be completely honest, I’ve never tested compatibility with the popular caching plugins. My sincerest apologies. There’s an enormous world of conflict out there and I only have so many hours available to me so I focus on whatever issues are yelling at me the loudest…

    Let me know if you have any other questions and take care,

    Thread Starter Adam @ WPCrafter

    (@wpcrafter)

    I’ll mark this as resolved right now.

    No issues, I know you guys are a small team.

    For anyone that use WP Rocket, here is what needs to be added to the never cache section:

    /lesson/(.*)
    /membership/(.*)
    /course/(.*)

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘LMS giving paid course access, for free when use is logged in’ is closed to new replies.