Post by ralphstirrat » Fri Aug 11, 2017 11:50 pm

Hi

I'm looking to integrate Google customer reviews, it says to add a javascript to the checkout confirmation page which I believe is /catalog/controller/checkout/success.php

The codes asks for some variables to be changed to match the platform and change ORDER_ID, CUSTOMER_EMAIL, COUNTRY_CODE, YYYY-MM-DD but I can't see these in that file, am I doing something wrong?

Has anyone had any luck integrating this module?
Thanks!

Code: Select all

<script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script>

<script>
  window.renderOptIn = function() {
    window.gapi.load('surveyoptin', function() {
      window.gapi.surveyoptin.render(
        {
          "merchant_id": 12345678,
          "order_id": "ORDER_ID",
          "email": "CUSTOMER_EMAIL",
          "delivery_country": "COUNTRY_CODE",
          "estimated_delivery_date": "YYYY-MM-DD"
        });
    });
  }
</script>

http://colbrook.co.uk


Active Member

Posts

Joined
Wed Aug 29, 2012 7:53 pm
Who is online

Users browsing this forum: No registered users and 109 guests