Announcement

Collapse
No announcement yet.

Merchant Centre Review Code Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Merchant Centre Review Code Help

    Hi All, Has anyone got ideas how to get the info in red over from Sellerdeck into the Google opt-in review code?

    Code:
    <!-- BEGIN GCR Opt-in Module Code -->
    <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(
            {
              // REQUIRED
              "merchant_id":"MERCHANT_ID",
              "order_id": "ORDER_ID",
              "email": "CUSTOMER_EMAIL",
              "delivery_country": "COUNTRY_CODE",
              "estimated_delivery_date": "YYYY-MM-DD",
    
              // OPTIONAL
              "opt_in_style": "OPT_IN_STYLE"
            }); 
         });
      }
    </script>
    <!-- END GCR Opt-in Module Code -->
    Thanks very much
    Many Thanks
    Lee
    www.mdnsupplies.co.uk
    www.hookandloopfasteners.co.uk

    #2
    Hi Lee,

    In the article provided by Google, they have an example with a php echo pulling through the results of the fields

    https://support.google.com/merchants...106244#example

    As the cart pages are controlled by a Perl script - I'm not exactly sure on how you would pull these.

    At what stage of your checkout are you offering this choice to the customer?

    Your merchant ID is shown inside Google Merchant Center, at the top left under the logged in username - this is a fixed value that you should hardcode, unless you wish to build a variable and store data on a site level, if you have multiple sites using the same design.
    Matt. M - SMR Enterprises Ltd.

    Comment

    Working...
    X