Post by moc » Fri Aug 31, 2018 9:26 am

I am trying to join the Google customer review program and have 2 questions.

1)Google advises
"<!DOCTYPE HTML> must be added to the top of every webpage"
WHat files do I add this to in opencart?

2)Google provides the snippet below to be added to the order confirmation page.
Where do I find the order confirmation page file, to add this snippet too?
------------------------------------------------------------------------------------------------
<script src="https://apis.google.com/js/platform.js? ... enderOptIn" async defer></script>

<script>
window.renderOptIn = function() {
window.gapi.load('surveyoptin', function() {
window.gapi.surveyoptin.render(
{
// REQUIRED FIELDS
"merchant_id": 122506692,
"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>

-------------------------------------------------
I am running
OC ver 2.1.0.2
Journal ver 2.15.2


Many thanks

moc
New member

Posts

Joined
Sat Apr 05, 2014 11:32 am

Post by straightlight » Fri Aug 31, 2018 10:15 am

See this example: viewtopic.php?f=24&t=191768 . You can download an extension from the Marketplace to customize your success page.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by moc » Fri Aug 31, 2018 11:16 am

Thanks Straightlight, though this is a little above my pay grade (comprehension)
The three extensions I have looked at so far give the option to format the success page but not to add code ( the google code )
My simplistic understanding was that I simply add the google code to the success page and google take care of the emailing to the client and ratings.
Looks like I am wrong and need to find pro support.
Thanks

moc
New member

Posts

Joined
Sat Apr 05, 2014 11:32 am
Who is online

Users browsing this forum: No registered users and 7 guests