Advertisement
belostotsky

Untitled

Mar 25th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <script>
  2. var confirmationPageURL = "http://google.com"; // Replace the URL with the URL of your custom page
  3.  
  4. // Add handler for Ecwid's OnPageLoad event
  5. if (
  6. typeof(Ecwid) == 'object'
  7. && typeof(Ecwid.OnPageLoad) == 'object'
  8. ) {
  9. Ecwid.OnPageLoad.add(function(page) {
  10. // Redirect user if needed
  11. if (
  12. typeof(page) == 'object'
  13. && 'ORDER_CONFIRMATION' == page.type
  14. ) {
  15. window.location = confirmationPageURL;
  16. }
  17. });
  18. }
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement