diff --git a/content/pages/checkout.blade.php b/content/pages/checkout.blade.php index d9a7625..8236bfe 100644 --- a/content/pages/checkout.blade.php +++ b/content/pages/checkout.blade.php @@ -185,8 +185,9 @@ } function initialize() { clearAddressFields(); - var input = document.getElementById('field_location'); - var autocomplete = new google.maps.places.Autocomplete(input); + let input = document.getElementById('field_location'); + let options = { componentRestrictions: {country: "de"} }; + var autocomplete = new google.maps.places.Autocomplete(input, options); autocomplete.addListener("place_changed", () => { const place = autocomplete.getPlace(); if (!place.geometry) return;