Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi msrz85,

    That’s probably because the Spanish translation you’re using that ships with the plugin hasn’t been updated to include a translation for the location label.

    To translate all the strings in the plugin, I’d recommend you use Loco Translate. It will provide you with a page in your WordPress admin area where you can translate plugins and themes.

    Once you’ve generated the PO/MO files for translation, please send them to me at hello AT themeofthecrop DOT com. Then I can include the upaded translations with the next version of the plugin.

    Customizing the default location option requires a bit more work. If you just want to pre-select a location, you can do this with the shortcode by adding a location attribute. For instance, if your location ID is 123, you can use the following shortcode to output a booking form just for that location:

    [booking-form location=123]

    If you actually want to change the order of the locations in the list, you’ll need to write some custom code to filter the booking form fields. This will require you be familiar with WordPress’s filters system.

    You can use the rtb_booking_form_fields filter to inspect and change the array of fields used to generate the form. You’ll need to find the location field and re-arrange the array of options. The fields array is documented here:

    https://github.com/NateWr/restaurant-reservations/blob/master/includes/Settings.class.php#L731-L766

    If you’re not familiar with writing code and using WordPress’s filters system, this would be a pretty easy job for a qualified freelancer. I’d recommend you try codeable.io. They can match you with professional freelancers who ought to be able to make relatively short work of this.

    Thread Starter msrz85

    (@msrz85)

    Thanks for the answer, I’ll try to do it and send you the translation files.

    Thread Starter msrz85

    (@msrz85)

    I’ve just sent you the translation files.
    Thanks for the help.

    Greetings,

    Matias

    Thanks Matias!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Booking Form Customization’ is closed to new replies.