Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The Group size selected by the customer at the Availability Search page is not passed to commerce-line-item:rooms-booking-number-people. Instead this field seems to store the rooms_unit Max number of people entered by the admin on the edit page for that particular room
This means that the actual number of people entered by the customer is not available for calculations via Rules (eg per person supplement for pax > 2) when price calculation is set up as price per room. See related issue #2012212: Per person per night supplemental Rooms options
Comment | File | Size | Author |
---|---|---|---|
#2 | rooms-group-size-not-passed-to-rules-2013457-2.patch | 1.28 KB | 1an_m |
Comments
Comment #1
LeDucDuBleuet CreditAttribution: LeDucDuBleuet commentedI also believe that the group size should be passed instead of the max capacity of the room when we are using the "Price per room per night" option.
Here is a little patch that replaces the max capacity of the room by the group size selected by the user for each unit added to the cart.
It serves my purposes and after some tests, there is no side effect in my opinion so here it is.
Comment #1.0
LeDucDuBleuet CreditAttribution: LeDucDuBleuet commentedUpdated with link to related issue
Comment #2
1an_m CreditAttribution: 1an_m commentedUpdated patch
Comment #3
ronald_istos CreditAttribution: ronald_istos commentedComment #4
citlacom CreditAttribution: citlacom commentedComment #5
gpiccon CreditAttribution: gpiccon commentedHello. I need that. How can I apply that patch to my site? I have been looking on the site, but couldn't figure it out :(
Any help will be much appreciated.
Thanks!
Comment #6
jwilson3Comment #7
plopescHi,
Similar patch was already committed in other issue. Feel free to reopen it if your problems persist.
Thank you