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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

LeDucDuBleuet’s picture

Status: Active » Needs review
FileSize
965 bytes

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

LeDucDuBleuet’s picture

Issue summary: View changes

Updated with link to related issue

1an_m’s picture

Issue summary: View changes
FileSize
1.28 KB

Updated patch

  1. re-rolled for latest dev
  2. added equivalent change so that number of children is also passed to commerce-line-item:rooms-booking-number-people
ronald_istos’s picture

Issue tags: +7.1
citlacom’s picture

Assigned: Unassigned » citlacom
gpiccon’s picture

Hello. 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!

jwilson3’s picture

plopesc’s picture

Status: Needs review » Fixed

Hi,
Similar patch was already committed in other issue. Feel free to reopen it if your problems persist.
Thank you

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.