Booking Engine Addon

Installation Guide

Step 1: Install the Plugin

  1. Log in to your WordPress admin dashboard
  2. Navigate to Plugins > Add New
  3. Click the Upload Plugin button at the top of the page
  4. Click Choose File and select the camping-search-form.zip file
  5. Click Install Now
  6. After installation completes, click Activate Plugin

Step 2: Use the Shortcode

Add the shortcode [camping_search_form] to any page or post where you want the search form to appear.

Translation with WPML

Step 1: Scan for Translatable Strings

  1. Go to WPML > Theme and Plugin Localization
  2. Navigate to the Strings in the plugins tab
  3. Find and check the box next to Booking Engine Addon
  4. Click Scan selected plugins for strings
  5. Wait for the scan to complete

Step 2: Translate the Strings

  1. Go to WPML > String Translation
  2. You can find the strings by:
    • Looking at the most recently added strings (they’ll be at the top)
    • Using the search box to find specific strings (e.g., “Double room”, “Bell Tents”, etc.)
    • Filtering by domain: select “camping-search-form” from the dropdown
  3. For each string you want to translate:
    • Click the + button next to the string
    • Enter your translation in the text field that appears
    • Click Save

Step 3: Translate Form Labels

Make sure to translate all parts of the form:

  • Check-in/Άφιξη
  • Check-out/Αναχώρηση
  • Adults/Ενήλικες
  • Children/Παιδιά
  • Accommodation type/Τύπος διαμονής
  • Search/ΑΝΑΖΗΤΗΣΗ
  • All accommodation options:
    • Bungalows
    • Bell Tents
    • 1 Tent for 4/5 people
    • 2 Tents for 4 people
    • etc.

Step 4: Verify Translations

  1. Switch your website to the translated language
  2. Go to a page where you’ve added the shortcode
  3. Verify that all text appears in the translated language

Customization Options

Shortcode Parameters

The plugin supports several optional parameters:

[camping_search_form 
    search_results_url="https://example.campsaround.com/search-results/"
    adults_max="16" 
    children_max="15" 
    date_format="dd/mm/yy" 
    first_day="1"
]
  • search_results_url: Where to send search results (default: simos.campsaround.com)
  • adults_max: Maximum number of adults in dropdown (default: 16)
  • children_max: Maximum number of children in dropdown (default: 15)
  • date_format: Format for the date picker (default: dd/mm/yy)
  • first_day: First day of week in calendar (0 = Sunday, 1 = Monday, default: 1)

Troubleshooting

Missing Translations

If some strings are not appearing for translation:

  1. Make sure you’ve scanned the plugin for strings
  2. Check that you’re viewing all strings (not just untranslated)
  3. Try searching for the specific text
  4. If still missing, try rescanning the plugin or clearing WPML’s cache

Form Styling Issues

If the form doesn’t match your theme’s style:

  1. You can modify the CSS in css/style.css within the plugin folder
  2. Alternatively, add custom CSS through your theme’s customizer

Date Picker Language Issues

If the date picker calendar is not in the correct language:

  1. Ensure WPML is set up correctly with the language you want
  2. Check that your WordPress locale is correctly set
  3. Try clearing your browser cache

Support

For additional support, please contact: