Google review integration

  • Posts: 38
  • Thank you received: 0
3 months 2 weeks ago #289112

-- HikaShop version -- : 3.3.0

Is there a build in integration for google customer review?

support.google.com/adwords/answer/2375474?hl=en

Best regards,

RG

Please Log in or Create an account to join the conversation.

  • Posts: 62488
  • Thank you received: 8936
  • MODERATOR
3 months 2 weeks ago #289118

Hi,

No. From what I can understand, you need to be advertising on google and then reviews are compiled from different sources to make your rating.
Potentially, you could add Google Customer Reviews on your website:
support.google.com/merchants/answer/7124018
But I'm not sure what is necessary for that or if there is a need to do anything in HikaShop for that.

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 0
3 months 1 week ago #289611

Hey Nicolas,

I need to implement this code on the succesfull payment page and fill in the right variables. What is the best procedure to do this? The payment plugin is responsible for showing the succesfull payment page? How can I get those variables? Are they in the session?

<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 FIELDS
          "merchant_id": 108196171,
          "order_id": "ORDER_ID",
          "email": "CUSTOMER_EMAIL",
          "delivery_country": "COUNTRY_CODE",
          "estimated_delivery_date": "YYYY-MM-DD",

          // OPTIONAL FIELDS
          "products": [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}]
        });
    });
  }
</script>

Please Log in or Create an account to join the conversation.

  • Posts: 62488
  • Thank you received: 8936
  • MODERATOR
3 months 1 week ago #289614

Hi,

If you have a "return URL" filled in your payment method, then it's on that page that you want to add your code.
If you don't, then it's either in the "end" or the "after_end" view file of the "checkout" view.
You can check that by doing a checkout with the "Display view files" setting activated in the HikaShop configuration. In these view files, you can find all the details of the order in $this->order so no need to look into the session.
You can do a var_dump of that variable to check what it contains.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum