Draft Order/Cart canceling is completing registration unintentionally for discounted orders

Created on 10 October 2023, over 1 year ago
Updated 29 November 2023, about 1 year ago

Problem/Motivation

We have a discount/bursary that sets the carts price to 0. When the Cart is canceled, the pending registration is marked as complete because it thinks it's paid and doesn't check the status.

Steps to reproduce

  1. Create a free registration
  2. Create a new registration and cart (note the price is 0, the order is draft, and registration pending)
  3. Cancel the order on the admin page
  4. Look at the registration is now marked complete

Proposed resolution

Remove the paid order subscription because it doesn't check the order state and instead use the placed one instead. You can see for paid check this is how in commerce core this is how the order Receipt is subscribed to, see \Drupal\commerce_order\EventSubscriber\OrderReceiptSubscriber

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024