Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var confirmationPageURL = "http://google.com"; // Replace the URL with the URL of your custom page
- // 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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement