• Resolved Søren Sohl

    (@ssohl)


    I can’t get the window to load on the confirmation page – the script looks allright though. I just activated the Merchant agreement today so it might take a few hours before it will load? If you want to try a test order be my guest at https://www.landgarden.se/kassan/ and then choose ‘Banköverföring PlusGiro 786328-5’ as payment method.

    <script src=”https://apis.google.com/js/platform.js?onload=renderOptIn&#8221;
    async defer></script> <script>window.renderOptIn = function() {
    window.gapi.load(‘surveyoptin’, function() {
    window.gapi.surveyoptin.render({
    “merchant_id”: 102774314,
    “order_id”: “6459”,
    “email”: “soren@landhave.dk”,
    “delivery_country”: “SE”,
    “estimated_delivery_date”: “2018-04-08”,
    “opt_in_style”: “CENTER_DIALOG”,

    });
    });
    }</script> <script>window.___gcfg = {
    lang: ‘sv’
    };</script>

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

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

    (@natekinkead)

    Can you just give me the link to the thank you (order received) page from one of your test orders?

    Thread Starter Søren Sohl

    (@ssohl)

    Hey Nate – thanks for looking into it. Try this order I have just made:

    https://www.landgarden.se/kassan/order-received/6463/?key=wc_order_5abd16cbcaa4b&utm_nooverride=1

    Thread Starter Søren Sohl

    (@ssohl)

    I’m using Autoptimize – so I’ve tried to disable JS caching but that didn’t seem to work..

    Thread Starter Søren Sohl

    (@ssohl)

    I’m also using Varnish cache which might cause concern. I have three sites under my Merchant ID in merchant center. How would your plugin know which site is the right one?

    Another question; I have a My business page – do you know how these reviews are related to the Merchant ID reviews?

    Thread Starter Søren Sohl

    (@ssohl)

    Here’s another site I have in Danish: https://www.landhave.dk/kasse/order-received/12366/?key=wc_order_5abd227da7cf1&utm_nooverride=1

    The code looks fine though:

    <!– BEGIN GCR Opt-in Module Code –>
    <script src=”https://apis.google.com/js/platform.js?onload=renderOptIn&#8221;
    async defer>
    </script>

    <script>
    window.renderOptIn = function() {
    window.gapi.load(‘surveyoptin’, function() {
    window.gapi.surveyoptin.render({
    “merchant_id”: 102774314,
    “order_id”: “12366”,
    “email”: “soren@landhave.dk”,
    “delivery_country”: “DK”,
    “estimated_delivery_date”: “2018-04-08”,
    “opt_in_style”: “CENTER_DIALOG”,

    });
    });
    }
    </script>
    <!– END GCR Opt-in Module Code –>

    <!– BEGIN GCR Language Code –>
    <script>
    window.___gcfg = {
    lang: ‘da’
    };
    </script>
    <!– END GCR Language Code –>

    Thread Starter Søren Sohl

    (@ssohl)

    When I look at the documentation their code differs from their example:

    “merchant_id”:”MERCHANT_ID”,

    “merchant_id”: 42,

    Should there be ” or not?

    Thread Starter Søren Sohl

    (@ssohl)

    Found out finally 🙂

    Because I have more sites under Merchant center I have to choose the right site ID instead of the root one..

    Plugin Contributor natekinkead

    (@natekinkead)

    Cool, glad you figured it out so quickly!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Window not loading’ is closed to new replies.