gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
178 stars 135 forks source link

Membership autoenrollment is not working when a user enrolls in the membership via a voucher #2738

Open brianhogg opened 4 weeks ago

brianhogg commented 4 weeks ago

Reproduction Steps

  1. Go to https://voucher-test.myliftersite.com/ (this is a copy of the business trial template)
  2. Register on the registration page which you will see if you visit the site in a logged out state as this site is using the Private Site add-on features
  3. Enter one of the available voucher codes to complete the registration
  4. The user is sent to the dashboard with no activated courses or memberships, so it looks like the voucher code is not activating the membership it is associated with.

Expected Behavior

When a user activates a voucher code through registration, it should add them to the associated membership and trigger immedietly autoenrollment into courses that are set to autoenroll for that membership

Actual Behavior

The voucher code logs the user in, but they do not gain access to the membership or autoenroll courses immediately

brianhogg commented 4 weeks ago

It seems adding the "Voucher Code Redemption" block in the Register form doesn't work. The input is a random name (ie. text_2127_1) and not processed when the form is submitted. It likely should be named llms_voucher instead.

brianhogg commented 4 weeks ago

Deleting and re-adding the Voucher Code Redemption block seems to have fixed it. I'm not seeing where the input name could be changed as there's no setting for it.

Will need some more detail or steps in order to reproduce and fix.