Join our new community forum for support & discussion

Join Now

Home Support Themes RentalHive Auto Generate Booking Code

Auto Generate Booking Code

  • Author
    Posts
  • Mcnun

    How can i set a booking code that automatically generates a new one with new bookings

    ihor developer

    Please try using these codes to get the listing ID, host ID and the booking start date:

    $listing->get_id();
    $listing->get_vendor__id();
    date('Y-m-d', $booking->get_start_time());

    You can then use these codes in the booking title if you override the /booking/view/page/booking-title.php template part via a child theme (instead of $booking->get_id()) https://www.youtube.com/watch?v=LkojYp-8uwY

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.