View Single Post
  #16  
Old 04-10-2012, 06:33 PM
Steve Strickland1's Avatar
Steve Strickland1 Steve Strickland1 is offline
Junior Member
 
Join Date: Apr 2012
Posts: 13
Default

No matter what I try, it keeps inserting extra code: (espcially the "<![CDATA[")

Quote:
<script>// <![CDATA[
var confirmationPageURL = "http://google.com";</p>
<p>// Add handler for Ecwid's OnPageLoad event
if (
typeof(Ecwid) == 'object'
&& typeof(Ecwid.OnPageLoad) == 'object'
) {
Ecwid.OnPageLoad.add(function(page) {
// Redirect user if needed
if (
typeof(page) == 'object'
&& 'ORDER_CONFIRMATION' == page.type
) {
window.location = confirmationPageURL;
}
});
}
// ]]&gt;</script></p>