• Resolved alphax

    (@alphax)


    Hi,

    I have bought the Plugin “Google Auto-fill Address on Checkout, Order & Account Page” from the WooCommerce store, which will mage Google address suggestions on the checkout page for easer completion.

    However, whenever I have the SG Optimizier Plugin enabled, the Google autocomplete doesn’t work anymore.

    Would you be able to help me further as to how SG Optimizer blocks this and how it could be resolved?

    Many thanks
    David

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hello there @alphax,

    Can you please provide a site URL and enable the SG Optimizer, so we can check the issue you are experiencing?

    Kind regards,
    Stoyan

    Thread Starter alphax

    (@alphax)

    Hi @stoyangeorgiev

    Thank you for looking into this.

    the URL is: https:// davids134 . sg-host . com/checkout/

    I had reached out to the support of the WooCommerce plugin as well and was confirmed that SG Optimizer is apparently blocking the WooCommerce plugin’s JS.

    I have now activated the SG Optimizer again.

    Essentially what should happen is if you start typing in the field “Stra?e” (= Street) the autofill should start showing suggestions but it doesn’t whenever SG Optimizer is activated.

    I hope you are able to find a solution. I very much appreciate your help!

    Many thanks
    David

    • This reply was modified 3 years, 11 months ago by alphax.
    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @alphax

    This is an incompatibility issue between your plugins and theme.

    Please add the following to your theme function.php and the problem should be solved:

    
    add_filter( 'sgo_js_async_exclude', 'js_async_exclude' );
    function js_async_exclude( $exclude_list ) {
        $exclude_list[] = 'wp-i18n';
    
        return $exclude_list;
    }
    

    Regards,
    Stanimir

    Thread Starter alphax

    (@alphax)

    Hi @sstoqnov

    Thanks so much for looking into this!

    I have copied your code into my child theme functions.php

    However it didn’t have any impact, the problem still remains as long as SG Optimizer is activated.

    Could you please help me further?

    Thanks a lot!

    Best,
    David

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @alphax

    There is additional issue with google-auto-fill-address-on-checkout-order-account-page plugins.

    Please keep the js minification disabled.

    Regards,
    Stanimir

    Thread Starter alphax

    (@alphax)

    Hi Stanimir,

    Thank you for your answer.

    I wasn’t aware of these settings.

    Unfortunately the JS minification didn’t help, but I tried the other functions and disabling “Defer Render-blocking JS” did the trick.

    Thanks for the hint.

    Very glad this is resolved!

    Best,
    David

    Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Glad it worked for you, David! Don’t hesitate to drop a star or five in the review section ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WooCommerce Plugin Incompatibility’ is closed to new replies.