Issue with Zero-Priced Orders for Waitlist Management in Drupal Commerce

Created on 20 November 2024, about 1 month ago

Hello everyone,

I am currently facing a challenge with Drupal Commerce regarding the handling of zero-priced orders created for managing waitlists. My setup involves the following modules:

  • Commerce Registration
  • Commerce Registration Waitlist
  • Commerce Cart

The Problem:

When a user registers for an event that is full, a zero-priced order is created in the system as part of the waitlist management.

Thank you in advance for your help!
Halim.

๐Ÿ“Œ Task
Status

Active

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance louaifi

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

Comments & Activities

  • Issue created by @louaifi
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States john.oltman

    Hi there, I am guessing you have not read the instructions in the README yet. The user must complete an initial checkout to be placed on the wait list. If you still need assistance after reading those instructions please post again.

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance louaifi

    Hi John,

    Thank you for your response! Iโ€™ve gone through the README instructions and was able to get the module working with the native functionality, where registrations are automatically added to the waitlist when the event is full.

    However, my main concern is that I donโ€™t want users to be required to pay when they are added to the waitlist. What Iโ€™m aiming for is to have users added to the waitlist without any payment required upfront, and only charge them when a spot becomes available.

    I was wondering if there's a way to modify the existing functionality so that users are not prompted for payment while on the waitlist, but they can proceed with the payment only once a spot is confirmed.

    Any further advice or guidance on how to achieve this would be much appreciated!

    Thanks again for your help.

    Halim

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States john.oltman

    If your store is properly configured, a user will not be prompted for payment info (credit card, etc) while completing checkout if they only have a zero priced item in it. In this case checkout simply entails submitting contact info (name, email, maybe billing address) so you have a proper order. If you are looking to exclude wait list items from checkout entirely, that is different, and you should change the title of this issue to replace the words "payment process" with "checkout" so it is more clear what the goal is. I'll have to think on it if that is the case.

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance louaifi

    Yes, I would like to exclude the waitlist items from the checkout process entirely. I want users to be added to the waitlist without being prompted for payment, and only be asked to pay once a spot becomes available.

    Thank you very much for your continued help and support. I really appreciate your assistance in this matter!

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States john.oltman

    I think this would be doable by not adding the initial registration to the cart. Then adding it to the cart when the registration is moved off the wait list to pending. The user would then be emailed to complete checkout. I'll look into adding this to the module. Like the implementation described in the README, it may not work for guest checkout.

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance louaifi

    Thank you, John, that approach sounds perfectโ€”please let me know if I can assist with testing or feedback!

Production build 0.71.5 2024