Jump to content

Problem Integration Customer Reviews Google Merchant Center


Recommended Posts

Problem Integration Customer Reviews Google Merchant Center
 
I encounter a problem when I try to integrate the module of the survey acceptance function of Google Reviews.
 
The integration of the badge does not pose any problems in contrast to the integration of the acceptance function.
 
I need to enter this code on the order confirmation page.
I placed my code on the page "OrderConfirmationController.php"
 
Echo '<script src = "https://apis.google.com/js/platform.js?onload=renderOptIn" async defer> </ script>



<Script>
Window.renderOptIn = function () {';
Echo "window.gapi.load ('surveyoptin', function () {
window.gapi.surveyoptin.render (
{ ";
Echo '"merchant_id": XXXXXXX,
"Order_id": "<? Php echo $ order_id?>",
"Email": "<? Php echo $ email_address?>",
"Delivery_country": "<? Php echo $ user_country?>",
"Estimated_delivery_date": "<? Php echo $ delivery_date?>",
"Opt_in_style": "BOTTOM_LEFT_DIALOG"
});
});
}
</ Script>


<Script>
Window .___ gcfg = {';
Echo "lang: 'en'
};
</ Script> ";

 

 
I encounter 3 problems:
- The block is not displayed (when placing an order).
- Error: delivery_country should be a CLDR code of length 2!
- Error: Invalid estimated_delivery_date. Make sure the date format is YYYY-MM-DD
 
 
In Prestashop the locations are managed with "ISO" mode, but is it possible to perform
A conversion to CLDR or other?
 
For the date, I specified in my file the format YYYY-MM-DD yet he does not want it.
 
 
Thank you in advance for your help.
 
Regards,
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...