Restrict results to a single hotel

Dear plugin user,

A common use case that is repeteadly brought to me is how to create a search box returning results for a single / unique hotel. Typically you would have a post about how great the place is, or simply have a very neat UI and you want to integrate more seamlessly. No problem, this plugin got you covered.

First step : Find the hotel ID

Go to the booking.com extranet (https://admin.booking.com/partner/?lang=en) and then click on (1) “Implementation”, (2) “URL Constructor”, select (3) your country & city, (4) click on “hotels” and “show”. Finally pick the hotel ID in the list that shows up.how to find your booking.com hotel IDFor the sake of the example we’ll say the Hotel ID I want is “176270”.

Second step : Creating a searchbox

I’d rather assume you’re already familiar with the UI of the plugin but as this is a walkthrough let’s go step by step.

How to setup your affiliate searchbox

 

First, go to the left panel and (1) click on “Add new”, then (2) enter a title for your searchbox, (3) your Booking.com affiliate ID, (4) the hotel ID we just found, (5) restrict results to SINGLE hotel and, finally, I recommend you (6) hide the destination field in your searchbox. The last one is purely a cosmetic recommendation, do what you’re more comfortable with.

Last step : add it to your site

Final step, you’ll need to add this searchbox to your site. We’ll take the example of a blog post but the same methodology would apply to widgets or template areas.

Go to new post, click on that blue “B” icon next to the “Add media” button and select the box you want from the dropdown. If, for some reason, you’d rather work with the shortcode, you can simply copy / paste that code from the plugin menu on your site. Simple really.

Happy posts !

Greg

 

6 thoughts on “Restrict results to a single hotel

      • Just wanted to send an update on this. Spoke with Booking.com and apparently what I am viewing is the new Booking.com Partner Centre which is replacing the old one shown above in your current set up. This is currently being rolled out and will be replacing the old design. Unfortunately Hotel ID’s are no longer showing in the system only the links, and the only way I can find to show these it to search under Product> Links. Then once the hotel is found, download the CSV to show the Hotel ID in Excel spreadsheet.

      • Thanks Matt for sharing ! Hopefully you get it all sorted out now.

  1. Do you build other plug ins for WordPress? Do you work for Booking.com or Priceline? I’m a PCLN Partner Network member and have a unique widget that we’d like to make into a WP plug in.

    • Hello Chicke, I’m not an employee of any of these companies. I’ve done this plugin for free for the community to use. I do not have the time to go tackle other affiliation programs for free. Having said that, the code is under GPL. Feel free to reuse it for your own needs !

Leave a Reply

Your email address will not be published. Required fields are marked *