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

willvincent’s picture

can'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.

countrdd’s picture

Thanks 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.

willvincent’s picture

If 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.