Closed (duplicate)
Project:
Entity Registration
Version:
3.3.x-dev
Component:
Registration Core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2013 at 09:40 UTC
Updated:
19 Jan 2025 at 16:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
phoenix commentedI've solved this by creating a new formatter. Based on the formatter that existed already, and some functions to check the capacity.
There will be a link if there's still capacity, if not the error "fully booked" will be shown.
For those interested:
Comment #2
phoenix commentedComment #3
aucovic commentedI modified slightly the formatter above and instead the registration link, I included the registration form. Also implemeted hook_form_alter to tweak the form. (If you only need to tweak the form you can use that hook as a standalone in your custom module). Cheers!
Custom module source:
Comment #4
ptmkenny commentedIt would be great to have this as a patch to the module. If the event is full and the wait list feature is not enabled, it does not make any sense to show the registration form.
Comment #5
timwhelan commentedFirst, Thanks for sharing this content. I would love to see this as a patch. Not as familiar with creating custom modules just yet.
EDIT: So not know what to do I added this to a test site and could not get the capacity reached to turn off registration. to the bottom of the registartion.field.inc file, just to test it out.
Any other suggestions for testing. Would I need to create a new module and place that into the modules folder within the Registration module folder?
Thanks!!!
Comment #6
HitbyAttached the code above zipped in a custom module with info file. Just stick it in your sites/all/modules directory and activate it in your module interface.
Comment #7
gandhiano commentedI don't know if this should be a submodule of Entity Registration, or simply be integrated in the main module itself (it's UI polishing, even kind of basic functioning).
It would also be important to know how it interoperates with the waitlist submodule. When this is active, I would expect to see the user getting a link to put himself in the waiting list, rather than just removing it completely.
Comment #8
HitbyHi Gandhiano,
If the wait list is full the registration form is removed (I'm having to manually place a block explaining this when it happens on a daily basis. If someone cancels and a place on the waitlist is free then the form re-appears.
Comment #9
gandhiano commentedThanks Hitby for clarifying, in the meanwhile I think the behavior asked for in the title is actually standard in the current version. At least for me, without relying on your file, the link to register just disappears (nothing in substitution though, but this can be easily overcome with setting up a no results page for a view)
Comment #10
rattusrattus commentedHere's a patch to include some of the functionality provided in #1 plus a field configuration setting so that users can choose whether the link should be displayed.
I think there's some confusion between registration which are disabled and registrations which are enabled but registration is not possible for some reason, i.e. not enough capacity, the registration time period has not begun, etc. The current dev release of the module will not show a registration link in the case of the former but there is no present check to validate the latter. The attached patch allows users to decided whether to include the second validation check when rendering the registration link.
With regards to substitution, rather than simply removing the link, this is made more complicated by there being a number of reasons why registration isn't possible. registration_status() will return the exact reason but I expect they're going to be a bit lengthy in most cases.
Comment #11
tancAttached a re-roll against 7.x-1.x-dev
Comment #12
john.oltman commentedComment #13
john.oltman commentedThis was superseded by https://www.drupal.org/project/registration/issues/3499231