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

I used the code above and followed the instructions, but my URL redirect doesn't redirect. It takes the user nowhere.

Here is my code. Not sure what steps I'm missing here...figured it was pretty straight forward:

Quote:
<div>
<script type="text/javascript" src="http://app.ecwid.com/script.js?1133170" charset="utf-8"></script>
<script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style="); </script>
<noscript>Your browser does not support JavaScript. Please proceed to <a href="http://app.ecwid.com/jsp/1133170/catalog">HTML version of Steve Strickland's store</a></noscript>
</div>
<script>
var confirmationPageURL = "http://google.com";

// 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;
}
});
}
</script>