• Resolved izbr1234

    (@izbr1234)


    hi,

    i tried to remove and install the plugin. yesterday its was good, today not

    also when i open the google console i see there is traffic there… means i just cant see the autocomplete suggestions

    Please Help

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor natekinkead

    (@natekinkead)

    You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account: https://g.co/dev/maps-no-account For more information on usage limits and the Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/usage

    Thread Starter izbr1234

    (@izbr1234)

    Hello.
    First, thank you for quick reply.
    I linked billing account and now everything work properly.

    I have still 2 issues to make it perfect:

    1. I have two languages in my site. I want to be able change the language of the auto-complete also. (I tried the Auto language setting but the I want to override the browser language if it’s possible.

    2. When I typing name of street and add also apartment number then select it – the auto complete delete my apartment number. How I can define the apartment will stay (or move to his apartment field)

    Thank you

    Itzik

    Plugin Contributor natekinkead

    (@natekinkead)

    1. I updated the plugin to 2.0.4 which introduces a filter hook ‘checkout_adddress_autocomplete_language’ which you can use to extend this plugin to override the language based on your own logic.

    Example:

    add_filter('checkout_adddress_autocomplete_language', 'my_language_function', 10, 1);
    function my_language_function($language) {
       // do something to $language
       return $language;
    }

    2. Google Maps doesn’t handle apartment numbers and doesn’t return it as an address component in the API call, so you will have to type that one field in where applicable.

    Thread Starter izbr1234

    (@izbr1234)

    thank you for your reply, i appreciated if you can add some details: for example: where i should put those filer and what are the parameters ?

    Plugin Contributor natekinkead

    (@natekinkead)

    That code can go in your functions.php file or in a custom plugin. It would need to integrate with hooks available from the plugin you’re using to switch between the 2 languages.

    If you need to hire a developer to take care of this for you, you can reach us at https://www.ecreations.net

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘yesterday its worked – today not’ is closed to new replies.