How do i write script in the <HEAD>
I am trying integrate Google Checkout into my Site Finity 4.0 site. In order to do this I need to paste a bit of javascript into the <HEAD>. I tried using the "Script Widget" but this mucks up the extra attributres that Google requires. For example this script :
<script
id='googlecart-script' type='text/javascript'
src='checkout.google.com/.../cart.js
integration='jscart-wizard'
post-cart-to-sandbox='false'
currency='GBP'
productWeightUnits='KG'>
</script>
becomes this :
<script
type="text/javascript"
src="checkout.google.com/.../cart.js integration='jscart-wizard' post-cart-to-sandbox='false' currency='GBP' productWeightUnits='KG'"></script>
which is close, but not close enough as it add double quotes around the lot. Hence, how can i inject some markup into the header where i get full control ? I am presuming i need to develop my own widget ?
Cheers
Mark
Hello Mark,
Thank you for using our services.
By using the GoogleCheckout link (checkout.google.com/.../cart.js integration='jscart-wizard' post-cart-to-sandbox='false' currency='GBP' productWeightUnits='KG') in path to the script using the script widget the code will be inserted in your page' head tag. Can you please take a look at the attached screen cast and verify that this is not what you are trying to achieve?
Greetings,
Radoslav Georgiev
the Telerik team