# Link order to booking/ listing

**URL:** <https://community.hivepress.io/t/link-order-to-booking-listing/8865>\
**Category:** Bookings\
**Tags:** marketplace, bookings\
**Created:** [December 21, 2023, 7:36am UTC](https://community.hivepress.io/t/link-order-to-booking-listing/8865 "2023-12-21T07:36:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![germario](https://community.hivepress.io/letter_avatar_proxy/v4/letter/g/8e8cbc/32.png) [@germario](https://community.hivepress.io/u/germario)\
**Post date:** [December 21, 2023, 7:36am UTC](https://community.hivepress.io/t/link-order-to-booking-listing/8865/1 "2023-12-21T07:36:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [December 21, 2023, 2:47pm UTC](https://community.hivepress.io/t/link-order-to-booking-listing/8865/4 "2023-12-21T14:47:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![germario](https://community.hivepress.io/letter_avatar_proxy/v4/letter/g/8e8cbc/32.png) [@germario](https://community.hivepress.io/u/germario)\
**Post date:** [December 22, 2023, 1:29pm UTC](https://community.hivepress.io/t/link-order-to-booking-listing/8865/5 "2023-12-22T13:29:58Z")

</div>

I do. What would you recommend? Thanks!

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [December 27, 2023, 5:58pm UTC](https://community.hivepress.io/t/link-order-to-booking-listing/8865/7 "2023-12-27T17:58:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [January 26, 2024, 5:58pm UTC](https://community.hivepress.io/t/link-order-to-booking-listing/8865/8 "2024-01-26T17:58:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
