View Single Post
  #8  
Old 01-05-2012, 12:19 PM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Dre Slaman View Post
Hello,

The script is gone - thank you. But the customers are being redirected to my home page instead of the "thank you" page. I have tested the url that I inserted into the "var confirmationPageURL = "http://google.com";" section by copy and pasting it into my web browser and the URL works fine on its own. Any help would be greatly appreciated.
I have inspected your site. The reason of the issue is your Ecwid store is displayed in a frame on the store page. The custom script discussed in this thread is placed in that frame too, thus it cannot redirect a visitor by changing a 'window.location' variable. In order to fix it you should use the 'window.top.location.href' property instead. Please replace this line in your code:
Code:
window.location = confirmationPageURL;
with this one:
Code:
window.top.location.href = confirmationPageURL;
Hope it helps.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials