Closed (fixed)
Project:
Hotel Booking System for Ubercart
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Nov 2009 at 03:48 UTC
Updated:
14 Dec 2009 at 06:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
willvincent commentedI'm not sure I understand what you're asking.
Rooms have a base rate, and that base rate can be increased by a rate modifier applied to specific room types. Price can then also be adjusted by number of occupants.
So, if you need a rate that is based solely on number of occupants, you could set the rate to 0, and set the amount per person to an occupancy modifier with a threshold of 0. Though it would probably make more sense to set the base rate to the price for a single occupant, then create occupancy modifiers for numbers above 1.
Occupancy modifiers are defined separately for adults and children, and any existing modifiers can be assigned to any room type.
Comment #2
dasii commentedThanks for your reply, however our problem is a little more subtle. The base rate applies up to and including four occupants (regardless if they are adults or children) and THEN a per-person surcharge applies. As an example, 3 adults and 3 children would be 1 x baserate + 2 x additional_occupant_charge.
Comment #3
willvincent commentedAhh.. I see what the issue is now.
You want the ability to set up an occupancy modifier that is based solely on number of occupants, not number of adults or number of children.
This does seem like an important feature, and a fairly easy one to implement. I'll add it to the list for the next release.
Comment #4
willvincent commentedThe attached patch will add this functionality.
I've also commit the change to cvs.
So if you update from cvs you'll have this, or if the date of the latest dev snapshot is Dec. 1 or later you will also have this change. (It's not Dec.1 here yet, but the script that builds the dev snapshots has already run for today, so it won't run again until tomorrow sometime)
Comment #5
willvincent commented