Post by stonehinged » Thu Feb 23, 2012 10:53 am

I am on an older version of Open Cart still (1.4x) and would appreciate any assistance with returning model number in a script variable for the Google Trusted Store program.

Here is the Google code:

Code: Select all

<!-- BEGIN: Google Trusted Store --> <script type="text/javascript"> var gts = gts || []; gts.push([ 'id', '000000]); gts.push([ 'google_base_offer_id', 'PRODUCT_MODEL_NUMBER_GOES_HERE']); gts.push([ 'google_base_subaccount_id', '000000']); (function() { var scheme = (("https:" == document.location.protocol) ? "https://" : "http://"); var gtscript = document.createElement('script'); gtscript.type = 'text/javascript'; gtscript.async = true; gtscript.src = scheme + "www.googlecommerce.com/trustedstores/gtmp_compiled.js"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gtscript, s); })(); </script> <!-- END: Google Trusted Store -->
This code has been inserted before the </body> tag in my footer.tpl file so it appears on all pages per Google's requirements.

Can anyone offer help with how to code so when the script appears on any product page, it inserts that product's model number in the google_base_offer_id field?

For any other page on my site, I'd just need to pass no value.

Thanks much!

STONEHINGED
Handcrafted, Semi-Precious Jewelry
http://www.stonehinged.com/


User avatar
Active Member

Posts

Joined
Wed Aug 18, 2010 9:10 am
Location - US

Post by miradoro » Fri Aug 24, 2012 11:40 pm

i also need this module
anyone knows if it is available?

New member

Posts

Joined
Tue May 03, 2011 9:43 pm
Who is online

Users browsing this forum: No registered users and 3 guests