Hi,
I need to know how can I cancel an order as a user and not as a moderator or admin!
is it possible with rooms at all ? because I start a sample website with rooms and place a booking order as normal user! so I received an email to confirm booking and some url's to view status and etc ...
but cannot find any link or option to cancel it ?
so I need to know how can I do that ? and how can I apply some refund policies on it ?
Thanks a lot :)

Comments

sonixax created an issue. See original summary.

sonixax’s picture

any Idea ?

acrollet’s picture

Status: Active » Closed (works as designed)

@sonixax rooms does not provide a default method to cancel a booking, as there would be many different possible business cases and implications to doing so. If you wish to allow users to cancel their own booking and receive a refund, you will likely need to write some custom code (or Drupal rules) to represent your business rules. This will need to do something like add a form_alter to the booking form that adds a 'Cancel Booking' button if the current time is within a cancellable period. The callback function for that button could then do things like:

* Change the booking's state from confirmed to unconfirmed
* Use the Drupal Commerce API to issue a refund

and so on.