Purchase additional items in the same transaction as a reservation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1603172
    Christer Fernstrom
    Participant

    On the site I manage we sell accommodations using HB but also other items, such as tickets to events. It would be good to be able to sell different kinds of items in the same transaction, but HB Woocommerce does not allow this.

    In HB Woocommerce this is handled by the function preventAddToCartProductWithoutPayment in woocommerce-helper.php, which throws an exception if you try to add another item to the Woocommerce cart it there already is a room reservation.

    I wonder why? By removing the exception it is perfectly possible to purchase both an accommodation and another item in the same transaction. But there must be a reason you have made this choice. Is it unsafe to remove the exception?

    #1610759
    J. Davis
    Keymaster

    Hi Christer,
    Thanks for contacting us. It is not recommended to allow adding other products to the cart since it will affect booking paid price. It will differ from booking the total price and will cause difficulties in calculating reports.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.