Minor release : V1.8.1 is out

Dear plugin users,

This new release brings you 2 nice additions :

  1. Czech is finally available thanks to Martin Dvořák.
  2. I made it easier to create a searchbox that points to a SINGLE hotel. As I figured this would still require some longer explanations, I also posted this simple walkthrough to document a bit better. This isn’t a totally new capability even though I added a clearer menu option pulling some tweaks in the booking.com code.

Greg

Share this: Twitter | Facebook | Delicious | LinkedIn

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

 

Share this: Twitter | Facebook | Delicious | LinkedIn

Minor release : V1.8 is out

Dear plugin users,

Only a couple of weeks after the last update, please welcome this “maintenance” release.

Performance and overall WP best practices are always high on my list. The legacy searchbox storage function was doing a little too much for its purpose. Instead of creating entries in your “wp_postmeta” table ONLY in the context of a new searchbox, it created un-necessary entries for every post you created. Definitely not the intended purpose.

While this isn’t something I’m proud of, let’s be clear, the extra volume of information (or the weight in your WP database) is absolutely marginal and in no case this would have had an impact on your site speed or table integrity.

After a proper backup of your database (as you should), feel free to try the most popular WP database clean up plugins and you’ll notice very little difference before / after (shaved 4Kb off on this site).

Again, sincere apologies for not having it right on the first try. This flaw is fixed and you can resume creating searchboxes !

Greg

NB : Thanks to Pawel for his feedback !

Share this: Twitter | Facebook | Delicious | LinkedIn