Salut,
J'ai le même problème, j'ai mis ceci dans order-confirmation.tpl :
<!-- 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": 117199461,
"order_id": "{$id_order}",
"email": "{$email}",
"delivery_country": "FR",
"estimated_delivery_date": "{$smarty.now|date_format:"%y/%m/%d"}",
// OPTIONAL
"opt_in_style": "OPT_IN_STYLE"
});
});
}
</script>
<!-- END GCR Opt-in Module Code -->
Mais bien sûr ça ne fonctionne pas...J'ai mis :
"estimated_delivery_date": "{$smarty.now|date_format:"%y/%m/%d"}",
parce que je ne sais pas comment programmer une date de livraison donc même si le client reçoit le mail avant qu'il reçoit la commande tant pis ^^'
Si quelqu'un a la réponse ou même une indication ça me serait bien utile ! Merci d'avance !