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

Thanks again Makfruit.

I was finally able to figure it out and if everyone wants the code, here it is:

Quote:
<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
) {
doit = function() {window.location = confirmationPageURL;}
window.setTimeout(doit, 8000, true);
}
});
}
</script>
(replace www.google.com with whatever URL you want the user to be redirected to after they place their order). (change the 8000 to whatever # want in milliseconds).
The Following 2 Users Say Thank You to Steve Strickland1 For This Useful Post:
Doc (04-17-2012), Matt Ecwid (04-16-2012)