View Single Post
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

Originally Posted by Steve Strickland1 View Post
Hi Makfruit,

Thank you for the reply. Here is the URL:

Looking forward to your reply.


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:
var confirmationPageURL = "";</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;
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