Title: Import hotels from CSV for Booking.com affiliates
Author: JCarlos
Published: <strong>May 25, 2016</strong>
Last modified: May 25, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/import-hotels-from-csv-for-bookingcom-
affiliates.svg)

# Import hotels from CSV for Booking.com affiliates

 By [JCarlos](https://profiles.wordpress.org/jcmoscardo/)

[Download](https://downloads.wordpress.org/plugin/import-hotels-from-csv-for-bookingcom-affiliates.zip)

 * [Details](https://en-au.wordpress.org/plugins/import-hotels-from-csv-for-bookingcom-affiliates/#description)
 * [Reviews](https://en-au.wordpress.org/plugins/import-hotels-from-csv-for-bookingcom-affiliates/#reviews)
 *  [Installation](https://en-au.wordpress.org/plugins/import-hotels-from-csv-for-bookingcom-affiliates/#installation)
 * [Development](https://en-au.wordpress.org/plugins/import-hotels-from-csv-for-bookingcom-affiliates/#developers)

 [Support](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/)

## Description

**You must have a Booking.com Affiliate account in order to import the booking.com
hotels using this plugin.**

This plugin allows you to import easyly Booking.com hotels from TSV files. Before
of that you should have downloaded these hotels datasets from Booking.com Affiliate
area (Downloads > Hotel datasets).

Before use this plugin you have to do:

 * Download hotels TSV files of the cities that you want import hotels from Booking.
   com Affiliate Partner Centre > Downloads,
 * Place these tsv files in tsv-import folder located in the plugin folder.
 * Create a draft post or custom type template. (It will be used to create the hotel
   posts)

This plugin will create posts (of the same type of the post template). The numbers
of post will be created may vary depending the hotels to import and languages (if
you have WPML installed ).

It is strongly recommended to:

 * edit the TSV files and keep only the cities and hotels you want to import to 
   your wordpress site.
 * **create a database backup of your wordpress site**.

#### Features

 * Compatible with wordpress post types (posts/pages) and custom post types.
 * Easy template creation.
 * TSV/CSV cache and hotel indexing for performance
 * Easy to use. Insert Destination city ID, post ID and click validate/import
 * Replacements fields compatible with Visual Composer
 * Import system compatible with WPML
 * Remote Hotel Image URL inside posts or as featured image (Do not need to download
   hotel images)

#### Possible customisation

Use these fields inside your post template.

 * **{{hotel_id}}** => Hotel ID
 * **{{hotel_name}}** => Property name
 * **{{hotel_address}}** => Property address
 * **{{hotel_zip}}** => Post code
 * **{{hotel_city_hotel}}** => Property city
 * **{{hotel_cc1}}** => Property country code
 * **{{hotel_ufi}}** => Unique city identifier (destination id), also known as city_id
   or dest_id
 * **{{hotel_class}}** => Star rating of property
 * **{{hotel_currencycode}}** => The currency in which prices are given for this
   property (three characters, uppercase – e.g – EUR)
 * **{{hotel_minrate}}** => The lowest rate charged by the property, calculated 
   on average
 * **{{hotel_maxrate}}** => The highest rate charged by the property, calculated
   on average
 * **{{hotel_preferred}}** => If value is 1, this property is a Booking.com preferred
   property
 * **{{hotel_public_ranking}}** => The rank of the property (higher is better)
 * **{{hotel_nr_rooms}}** => The total number of rooms at the property
 * **{{hotel_longitude}}** => Decimal longitude
 * **{{hotel_latitude}}** => Decimal latitude
 * **{{hotel_hotel_url}}** => The property URL on Booking.com
 * **{{hotel_photo_url}}** => URL for main property photo
 * **{{hotel_desc_(language)}}** => Short description of property change (language)
   => en, es, fr … {{hotel_desc_en}}
 * **{{hotel_city_unique}}** => Unique city name for use in URL
 * **{{hotel_city_preferred}}** => Preferred name of city for Booking.com use
 * **{{hotel_continent_id}}** => sThe unique ID for the continent on which the property
   is located

The plugin will replace the fields above with the hotel information. For example:

{{hotel_name}} will be replaced with the name of the hotel

{{hotel_hotel_url}} will be replaced with booking.com hotel url
 … …

## Screenshots

[⌊First of all you need to downdoad from "Booking.com Affiliate Partner Center" 
the hotels datasets (TSV files).⌉⌊First of all you need to downdoad from "Booking.
com Affiliate Partner Center" the hotels datasets (TSV files).⌉[

First of all you need to downdoad from “Booking.com Affiliate Partner Center” the
hotels datasets (TSV files).

[⌊Once you upload the hotels datasets to /tsv-uploads/. You need to Generate cache
files.⌉⌊Once you upload the hotels datasets to /tsv-uploads/. You need to Generate
cache files.⌉[

Once you upload the hotels datasets to /tsv-uploads/. You need to Generate cache
files.

[⌊Create a post draft as template, using (customization fields, adding translations,
categories, etc etc).⌉⌊Create a post draft as template, using (customization fields,
adding translations, categories, etc etc).⌉[

Create a post draft as template, using (customization fields, adding translations,
categories, etc etc).

[⌊Insert destinations ID and the draft post ID (template already created) and click
for validation.⌉⌊Insert destinations ID and the draft post ID (template already 
created) and click for validation.⌉[

Insert destinations ID and the draft post ID (template already created) and click
for validation.

[⌊The destination id exists in the TSV files and the post ID is valid as hotel template.
You can continue by clicking Import hotels⌉⌊The destination id exists in the TSV
files and the post ID is valid as hotel template. You can continue by clicking Import
hotels⌉[

The destination id exists in the TSV files and the post ID is valid as hotel template.
You can continue by clicking Import hotels

[⌊Impoer RESULTS. List of hotels (posts, status, languages) imported or updated.
Only import or modified hotels 10 each time.⌉⌊Impoer RESULTS. List of hotels (posts,
status, languages) imported or updated. Only import or modified hotels 10 each time
.⌉[

Impoer RESULTS. List of hotels (posts, status, languages) imported or updated. Only
import or modified hotels 10 each time.

[⌊List of posts created (ex. portfolios categories Hotels and Mojacar), By default
created as Draft, though It can be force to publish⌉⌊List of posts created (ex. 
portfolios categories Hotels and Mojacar), By default created as Draft, though It
can be force to publish⌉[

List of posts created (ex. portfolios categories Hotels and Mojacar), By default
created as Draft, though It can be force to publish

[⌊Final post created. {{Name of field}} have been replaced by the hotel value.Ex.{{
hotel_name}} => Real name of the hotel⌉⌊Final post created. {{Name of field}} have
been replaced by the hotel value.Ex. {{hotel_name}} => Real name of the hotel⌉[

Final post created. {{Name of field}} have been replaced by the hotel value.Ex. {{
hotel_name}} => Real name of the hotel

## Installation

Please, renember that you must be Booking.com affiliate to use this plugin.

 1. Download the plugin from https://wordpress.org/plugins/
 2. Login in your WordPress as admin role.
 3. Go to: Plugins > Add New > Upload.
 4. Select the downloaded file and click “Install now”.
 5. Place your TSC/CSV hotels files in the tsv-uploads folder inside the plugin
 6. Do wordpress database backup. Just in case
 7. Use the plugin

After that, I will be able to:

 * Import al hotels from a city.
 * Use different post templates for hotel imports.

## Reviews

![](https://secure.gravatar.com/avatar/eeda5e13c70557aff25c181c93b88f3f2a9476c5343705c8afb9815140c8b0f1?
s=60&d=retro&r=g)

### 󠀁[Do the job prefectly](https://wordpress.org/support/topic/do-the-job-prefectly/)󠁿

 [fmdesign](https://profiles.wordpress.org/fmdesign/) November 11, 2016

Simple to use with great results. Easy to customize and pick the data from database.

 [ Read all 1 review ](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/)

## Contributors & Developers

“Import hotels from CSV for Booking.com affiliates” is open source software. The
following people have contributed to this plugin.

Contributors

 *   [ JCarlos ](https://profiles.wordpress.org/jcmoscardo/)

[Translate “Import hotels from CSV for Booking.com affiliates” into your language.](https://translate.wordpress.org/projects/wp-plugins/import-hotels-from-csv-for-bookingcom-affiliates)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/import-hotels-from-csv-for-bookingcom-affiliates/),
check out the [SVN repository](https://plugins.svn.wordpress.org/import-hotels-from-csv-for-bookingcom-affiliates/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/import-hotels-from-csv-for-bookingcom-affiliates/)
by [RSS](https://plugins.trac.wordpress.org/log/import-hotels-from-csv-for-bookingcom-affiliates/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.8.1

 * First version

#### 0.8.2

 * Add screenshots and more info

## Meta

 *  Version **0.8.2**
 *  Last updated **10 years ago**
 *  Active installations **10+**
 *  WordPress Version ** 3.4 or higher **
 *  Tested up to **4.4.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/import-hotels-from-csv-for-bookingcom-affiliates/)
 * Tags
 * [affiliate](https://en-au.wordpress.org/plugins/tags/affiliate/)[booking.com](https://en-au.wordpress.org/plugins/tags/booking-com/)
   [csv](https://en-au.wordpress.org/plugins/tags/csv/)[import](https://en-au.wordpress.org/plugins/tags/import/)
   [tsv](https://en-au.wordpress.org/plugins/tags/tsv/)
 *  [Advanced View](https://en-au.wordpress.org/plugins/import-hotels-from-csv-for-bookingcom-affiliates/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/reviews/)

## Contributors

 *   [ JCarlos ](https://profiles.wordpress.org/jcmoscardo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/import-hotels-from-csv-for-bookingcom-affiliates/)