View Single Post
  #13  
Old 04-10-2012, 10:05 AM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Steve Strickland1 View Post
Hi Makfruit,

Thank you for the reply. Here is the URL: http://chezchamar.com/?page_id=52

Looking forward to your reply.

Thanks

Steve
Thank you. I've inspected your site. As far as I can see, the javascript code you've added is corrupted by Wordpress editor you used to enter it.

Now the code looks as follows:
Code:
<script>
var confirmationPageURL = "http://google.com";</p>
<p>// Add handler for Ecwid's OnPageLoad event
if (
  typeof(Ecwid) == 'object'
  #038;#038; typeof(Ecwid.OnPageLoad) == 'object'
) {
  Ecwid.OnPageLoad.add(function(page) {
    // Redirect user if needed
    if (
      typeof(page) == 'object'
      #038;#038; 'ORDER_CONFIRMATION' == page.type
    ) {
      window.location = confirmationPageURL;
    }
  });
}
</script>
I've marked errors with red. Most likely, the text editor you used added those corrections. Please try to re-enter the code, using this instructions:
1) Toggle page/post editor in HTML mode (WYSIWYG mode doesn't allow javascript codes)
2) Enter the code
3) Save it (without returning to WYSIWYG mode).
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials