Link order to booking/ listing

Hi there! Since on the booking page, there isn’t too much info, and we will leverage the WooCommerce order functionality for CRM, Invoices, Payments and administration, it would be great if there was a much easier way to see what orders are linked to.

  1. It is great that the host of a listing is mentioned on an order record. Can you help me with a snippet, so that the booking ID and listing are also linked on an order record?

2). The hidden product for a listing copies the listing title. What’s a snippet code to help transmit other listing attributes to the hidden product? That’s great for a number of things, also showing more data of that listing in the checkout screen.

Thank you!

Best,
Mario

Hi,

Unfortunately, there are no simple snippets for these features, they require a custom implementation with detailed review, but if you have development knowledge, we can provide general recommendations.

I do. What would you recommend? Thanks!

Please try fetching the purchased item, it contains the booking ID in “hp_booking” meta. By getting the booking post by ID you can also get the listing ID via the “post_parent” field.

Hope this helps.