I have set up a clean install of Rooms and followed the screen cast and built the system from this. When you have an option on the room the price modification is made but then no information on this is passed to the order or line item.

This means that a hotel owner will not know if an option has been selected unless they can guess from the price. Of course if several options come to the same price then there is no way. This is the same for a guest, they will not know if they have or have not added an option to the booking.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

1an_m’s picture

Agree that this is a problem.

The information is actually stored in the database (lives in table field_data_rooms_booking_options), but this does not seem to be available to Views, and so cannot easily be added to a View for display to user or administrator. It can be seen if one clicks the edit link for a booking, but this is not available to the user (because of appropriate permission restrictions) and is a clunky way for the administrator to check what options were selected.

If a View of Line Items is created, the field "Booking Options" is available, but this is blank, even for line items that have options recorded in table field_data_rooms_booking_options.

ronald_istos’s picture

Agree that this is an issue - we are working on a generalized solution for this that should be released soon.

ronald_istos’s picture

Issue summary: View changes
Issue tags: +7.1
citlacom’s picture

Assigned: Unassigned » citlacom
citlacom’s picture

citlacom’s picture

Status: Active » Needs review

Created rooms_options_default and rooms_options_admin formatters so when rooms_options line item field is displayed in a line items view the rooms options displays correctly. As no formatters exists for field type rooms_options the field displayed empty. (sent a pull request with the fix)

In the screenshots above I show a step by step on how to display the Room Options in a view.

Pedro Lozano’s picture

While investigating #2089125: base cost and cost differ in availability search and #1995008: Room Options amount not correctly transfered to line item for quantity >1 I found a problem that is the real cause of this.

The options selected when creating a booking from the admin interface are not passed to the order creation code as price modifiers for the line item.

I've pushed to a github branch (issue-1998848) and opened a pull request.

ronald_istos’s picture

Status: Needs review » Reviewed & tested by the community

Fixed in dev version - looks to be working well.

businessvip’s picture

Hi, I'm using Drupal 7.26 and the last version of Rooms 7.x-1.0+107-dev however the Room Options don't work. The individual price of each option isn't showed and also it's not added to the total amount of the reservation.

I wonder if this situation will be fixed in the next update of Rooms and if you can give us a data when the new stable version will be released.

Regards

dialn’s picture

in Drupal 7.26 and the last version of Rooms 7.x-1.0+107-dev no working update. I added an options field, then I've added several options and the check does not appear to add to cart
options error

jwilson3’s picture

Status: Reviewed & tested by the community » Needs work

Reopening per previous two comments.

dialn’s picture

FileSize
34.87 KB

  • Commit 1e2ea73 on master, 7.x-1.x by ronald_istos:
    Merge pull request #34 from BluesparkLabs/ROOMS-139
    
    Fixes for D.O....
  • Commit 7c5a615 on master, 7.x-1.x by ronald_istos:
    Merge pull request #35 from BluesparkLabs/issue-1998848
    
    Issue #1998848...
  • Commit 84c6479 on master, 7.x-1.x by citlacom:
    #1998848 - Created rooms_options_default and rooms_options_admin...
  • Commit f58c935 on master, 7.x-1.x by Pedro Lozano:
    Issue #1998848: Pass options to order line items.
    
ronald_istos’s picture

Status: Needs work » Fixed

@dialn you don't need to add a field. Follow @citlacom's instructions in #5. You just need to update the line item view. We should make this more user friendly but will tackle that in a subsequent issue.

ronald_istos’s picture

Status: Fixed » Closed (fixed)