Description
We are receiving reports that partial refunds in WooCommerce are causing users to be unenrolled from all Moodle courses linked to the order, instead of only the refunded item.
This appears to be related to the “Unenroll user after refund” feature.
Expected Behavior
Partial refunds should only affect the refunded course/product
Enrollments for other non-refunded courses in the same order should remain active
Actual Behavior
When a partial refund is processed, the user is unenrolled from all Moodle courses associated with the order
Examples
Order contains 3 courses: EILWI26, ILWI26, TLWI26
One course is partially refunded
Result: User is unenrolled from all 3 courses
Order contains 2 courses (EILWI26, TLWI26) + a paid PDF textbook
Partial refund issued only for the textbook
Result: User is unenrolled from both courses
Impact
Users lose access to valid courses after unrelated partial refunds
Causes confusion and support issues for clients
Description
We are receiving reports that partial refunds in WooCommerce are causing users to be unenrolled from all Moodle courses linked to the order, instead of only the refunded item.
This appears to be related to the “Unenroll user after refund” feature.
Expected Behavior
Partial refunds should only affect the refunded course/product
Enrollments for other non-refunded courses in the same order should remain active
Actual Behavior
When a partial refund is processed, the user is unenrolled from all Moodle courses associated with the order
Examples
Order contains 3 courses: EILWI26, ILWI26, TLWI26
One course is partially refunded
Result: User is unenrolled from all 3 courses
Order contains 2 courses (EILWI26, TLWI26) + a paid PDF textbook
Partial refund issued only for the textbook
Result: User is unenrolled from both courses
Impact
Users lose access to valid courses after unrelated partial refunds
Causes confusion and support issues for clients