Describe the bug
Currently selling memberships through WooCommerce does not work correctly with Multiple Memberships Per User. This doesn't apply multiple roles but only one role when checking out.
To Reproduce
Steps to reproduce the behavior:
Purchase a WooCommerce product assigned to a level.
Purchase another level via WooCommerce.
The user only receives one role as per the last level purchased and not a combination thereof.
Describe the bug Currently selling memberships through WooCommerce does not work correctly with Multiple Memberships Per User. This doesn't apply multiple roles but only one role when checking out.
To Reproduce Steps to reproduce the behavior:
The 'user_change_level' function needs to be refactored a bit for this - https://github.com/strangerstudios/pmpro-roles/blob/dev/pmpro-roles.php#L159