Order finish page - how to get ORDER ID and customer EMAIL

20.06.2019 16:05
#1
vitaly2016
Joomshopping forum user no avatar
Name: Vitaly
14.06.2016
Posts: 27
Quote
Order finish page - how to get ORDER ID and customer EMAIL

To take part in Google Customer Review program I should place such script at finish page (finish.php)

<!-- Google Customer Reviews -->
<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": "MERCHANT_ID",
"order_id": "ORDER_ID",
"email": "CUSTOMER_EMAIL",
"delivery_country": "UA",
"estimated_delivery_date": "YYYY-MM-DD",

// OPTIONAL FIELDS
"products": [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}]
});
});
}
</script>
=====================================
Fileds ORDER_ID and CUSTOMER_EMAIL I should dynamically replace for last real values. How to achieve this?

 
23.06.2019 17:17
#2
vitaly2016
Joomshopping forum user no avatar
Name: Vitaly
14.06.2016
Posts: 27
Quote
Aw: Order finish page - how to get ORDER ID and customer EMAIL

I have solved this problem: I get last order info by direct access to MySQl


Last change: 23.06.2019 18:49
 
23.06.2019 19:27
#3
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Order finish page - how to get ORDER ID and customer EMAIL

Or
Change code
https://www.webdesigner-profi.de/joomla-webdesign/shop/addons/google-conversion-tracking.html

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.