Skip to main content
All CollectionsAdding and managing orders
Taking international bookings
Taking international bookings

How to open up your quote form for international locations.

Mark Walker avatar
Written by Mark Walker
Updated over 7 years ago

By default the automatic location suggestions from google are restricted to the primary country configured within your Transporters system.

If your business targets an international audience you may wish to open these suggestions up globally.

Wordpress Quote Form

Inside the wordpress admin login go to the Transporters page and choose the quote form you wish to change.
​ 
Click the "Advanced" button then paste the following into the "Custom JS" box, then update the quote form.

#START OF CODE TO COPY
setTimeout(function(){
var START_AUTOCOMPLETE = new google.maps.places.Autocomplete(document.getElementById('start-location_s_1'));
START_AUTOCOMPLETE.addListener('place_changed', function () {
var place = START_AUTOCOMPLETE.getPlace();
if (!place || !place.geometry) {return;}
jQuery('input[name="start_location_latitude"]').val(place.geometry.location.lat());
jQuery('input[name="start_location_longitude"]').val(place.geometry.location.lng());
});var END_AUTOCOMPLETE = new google.maps.places.Autocomplete(document.getElementById('end-location_s_1'));
END_AUTOCOMPLETE.addListener('place_changed', function () {
var place = END_AUTOCOMPLETE.getPlace();
if (!place || !place.geometry) {return;}
jQuery('input[name="end_location_latitude"]').val(place.geometry.location.lat());
jQuery('input[name="end_location_longitude"]').val(place.geometry.location.lng());
});},500);
#END OF CODE TO COPY

IFRAME Quote Form

In your Transporters system go to Settings->General->Display Options

Click advanced and enter the same code above into the Custom Javascript Box.

Internal Staff Order Management

On the admin login you can toggle international mode when searching for locations.

Simply search for the address as usual and when the "SEARCH RESULT" box displays, click the button with your country code inside. This will toggle the button to a world icon and searching again will include international results.

Did this answer your question?