Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
occupancy modifier for pets. X per Pet Per night. How hard would this be to do? Pets would NOT count against Occupancy but should be able to be limited to a certain number
Comments
Comment #1
willvincent CreditAttribution: willvincent commentedcan't be done with an occupancy modifier.
You could do it as an addon/upgrade product, along with some custom code to figure the proper amount to add. But it's not something that would be super quick and simple to set up, it will definitely take some custom coding.
Comment #2
countrdd CreditAttribution: countrdd commentedThanks for the reply. I am working on it now. It will be part of the Upgrades/Addons Section.
Once complete if someone wants to review and add it to the module. I will send the code.
The following modifications will be made.
1. Add a new field maxqty to the hotel_addons_upgrades_schema.
2. Add a Up to X Quantitiy (Please Enter Max Below) to the Quantity: Radio Group
3. Add a Max Quantity Text Field
4. Add a "Per Night" Option to the Frequency Fieldset
5. Update the Validation and Submit Functions in Admin.
6. Updated the hotel_addons_upgrades_get_product_list() to show correct Information in Admin Screens.
7. Update hotel_addons_upgrades_customer_form to show new options.
8. Update hotel_addons_upgrades_customer_form_submit to correct calculate qty for new options.
Comment #3
willvincent CreditAttribution: willvincent commentedIf you look at the upgrade/addon module, I added at least one hook that gets fired that should pass the necessary info about number of nights on to build out a custom upgrade item module pretty easily...
It's been a while so I forget the exact details.