Cancelling a cart does not change registration status to 'Canceled'

Created on 8 February 2024, about 1 year ago
Updated 27 February 2024, 12 months ago

Problem/Motivation

Steps to reproduce

  1. Go to a cart page with registration status 'Pending'.
  2. Click the button 'Cancel order'.
  3. Go back to the same cart page.
  4. The registration status is still 'Pending'.

Proposed resolution

Change the registration status to 'Canceled' when a cart is canceled.

πŸ› Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada franceslui

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

Merge Requests

Comments & Activities

  • Issue created by @franceslui
  • πŸ‡¨πŸ‡¦Canada franceslui

    Our workshop has a limit of certain number of registrations, so we would like to cancel some carts to free up some spaces for new registrations.

    Currently, to work around the issue of registration status not changed to 'Canceled' for cancelled carts, we have to cancel pending registrations manually after cancelling carts.

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    john.oltman β†’ made their first commit to this issue’s fork.

  • Status changed to Fixed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
  • πŸ‡¨πŸ‡¦Canada franceslui

    @john.oltman I greatly appreciate your help of fixing it so quickly! Have a nice day!

  • Status changed to Needs review about 1 year ago
  • πŸ‡¨πŸ‡¦Canada franceslui

    @john.oltman Thank you again for fixing the issue mentioned in its description.

    Do you think that you could also fix the related issue mentioned in comment #2: cancelling a registration does not change cart status to 'Canceled'? I would say that if a cart contains only a registration, canceling this registration should also cancel the cart. What do you think?

  • Status changed to Fixed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Hi @franceslui, the module does already automatically remove items from the cart for canceled registrations. If this is not happening for you, please double check your order refresh settings for the order type - you can open a new issue if you cannot get this working. It would not be appropriate to cancel an entire cart since the user may have other items in the cart they still want to purchase.

    Also, please leave this issue in Fixed status since it was part of a release. You can continue to ask questions when an issue is in Fixed status. "Needs review" is when you have contributed code and are asking a maintainer to review the work and potentially commit it to the module. Thanks!

  • Status changed to Active about 1 year ago
  • πŸ‡¨πŸ‡¦Canada franceslui

    @john.oltman Thank you very much again for fixing the issue.

    I am sorry that I mistakenly changed the status from 'Fixed' to 'Needs review'.

    Your opinion about my suggested change makes sense to me. Thank you for that too and have a nice day!

  • Status changed to Fixed about 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024