Plugin / Search boxes integration for Booking affiliates



You have to be Affiliate to use this plugin.

This plugin allows you to insert easily in your wordpress site the search boxes and inspiring search boxes that you have already created in your Affiliate account.

Before use this plugin you need to add your search boxes code, already generated in Affiliate Partner Centre > Products > Search box.

E.g. The code generated looks like:

<ins class="bookingaff" data-aid="(booking product id)" data-target_aid="(your affiliate ID)" data-prod="nsb" data-width="200" data-height="200" data-dest_id="-392301" data-dest_type="city">
    <!-- Anything inside will go away once widget is loaded. -->
    <a href="// affiliate ID)"></a>
<script type="text/javascript">
    (function(d, sc, u) {
      var s = d.createElement(sc), p = d.getElementsByTagName(sc)[0];
      s.type = 'text/javascript';
      s.async = true;
      s.src = u + '?v=' + (+new Date());
      })(document, 'script', '//');

You have to paste the code of the search box product generated in Affiliate Partner Centre in any of the textareas named “Search box code” and save it.

After save it, you will see a preview and the shortcode of this search box.

You could use the affiliate search box shortcode generator (button “Add search box” will be showed before the texteditor) or use the component “ affiliate search box” on Visual Composer plugin

Shortcode examples:
Insert the search box #id# as was generated in Affiliate Partner Centre
[booking_affiliate_box id=”#id#”]

Now, imagine we has generated the plugin for size 200px width and 200px height. We can override these values:
[booking_affiliate_box id=”#id#” width=”100%”]
[booking_affiliate_box id=”#id#” width=”100%” height=”300″]

Or we want to override or add a destination (hotel, city, …)
[booking_affiliate_box id=”#id#” width=”100%” dest_id=”12448″ dest_type=”hotel”]
[booking_affiliate_box id=”#id#” width=”100%” dest_id=”-392301″ dest_type=”city”]
[booking_affiliate_box id=”#id#” height=”300″ dest_id=”12448″ dest_type=”hotel”]


  • Do not need to write your AID. AID is embeded in the generated code
  • Fully compatible with the new product system tracking of Affiliate Partner Center
  • Manage easyly search boxes and inspiring search boxes.
  • With a with search boxes you can cover all the needs of your wordpress site.
  • Easy to use. You create you search box design and template on Affiliate Partner Center and copy the code generated and paste it in the plugin settings page.
  • Shortcode generator tool.
  • Widget customizations
  • Widget custumization depending the post or pages in post editor.
  • Fully integrated with Visual composer using “ affiliate search box” component

Possible customisation

Please, renember that you could fully customized your search boxes Affiliate Partner Center.

  • Width. You can add responsive width. E.g.: width= 100%
  • Height.
  • Destination
  • Destination ID (hotel, city, district, landmark and region)
  • Destination type (hotel, city, district, landmark and region)
  • Fully customization in shortcode, widget and post editor box.

You can get the destination ID from Affiliate Partner Centre > Products > Links


0 reviews

Rating breakdown

Details Information



First Released

10 Dec, 2015

Total Downloads


Wordpress Version

3.4 or higher

Tested up to:


Require PHP Version:




This plugin has been closed.


The plugin hasn't been transalated in any language other than English.


The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.