Viewing 5 replies - 1 through 5 (of 5 total)
  • HI 3-4-SAD,

    Each booking does have a unique ID in the database. Exposing this in the bookings table would require a little bit of code though. Are you comfortable writing code that uses WordPress hooks to extend functionality?

    Thread Starter 3-4-SAD

    (@kresimirpaun1)

    I am not sure what do you mean by “writing”? I could copy – paste the piece of code you suggest, that’s for sure. That ID number should be included also in the e-mail towards customer if possible.

    Thanks for a quick response!

    Hi,

    This gist is a small plugin that adds an email template tag for the user’s email address. If you change {user_email} to {booking_id} and $notification->booking->email to $notification->booking->ID that will allow you to add the ID to emails.

    You could then add the following code to the bottom of that plugin to show the ID on the booking list table:

    add_filter( 'rtb_bookings_table_columns', 'rtbabid_add_booking_id' );
    function rtbabid_add_booking_id( $columns ) {
    	$columns['ID'] = 'ID';
    	return $columns;
    }

    Please note I just made an edit to the snippet above to fix an error. And the code hasn’t been tested so no guarantees it will work for you.

    Thread Starter 3-4-SAD

    (@kresimirpaun1)

    Everything works. Thank you very much. Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reservation ID number’ is closed to new replies.