Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Hotel Booking WooCommerce Payments Purchase additional items in the same transaction as a reservation
- This topic has 1 reply, 2 voices, and was last updated 7 months, 2 weeks ago by J. Davis.
- AuthorPosts
- April 16, 2024 at 12:43 pm #1603172Christer FernstromParticipant
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?
May 2, 2024 at 6:45 am #1610759J. DavisKeymasterHi 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. - AuthorPosts
- You must be logged in to reply to this topic.