View Single Post
Old 04-11-2012, 03:48 AM
Steve Strickland1's Avatar
Steve Strickland1 Steve Strickland1 is offline
Junior Member
Join Date: Apr 2012
Posts: 13

Originally Posted by Makfruit View Post
The path you set for the script ("/wp-includes/redirect.js") points to this address:

But there is no script file there - try to open that URL, an empty page is returned. You should place the script in a publicly accessible place so that the store page would be able to get it - in this case the script will work.

Don't worry, it's OK now. They are placed outside the script inclusion:
<p><script type="text/javascript" language="javascript" src="/wp-includes/redirect.js"></script></p>
This way they don't break anything.

So, instead of using the .js file and making a call to it, I just used the regular script code, but I'm using a "raw html" plugin that is stripping out any formatting Wordpress is injecting in there. The redirection now actually works.

So, two questions now.

1. How can I control the speed of the redirection. When I test now, it's instant! Can I slow it down after 3-5 seconds?

2. How I protect my source code or the javascript from prying eyes? I don't want people to be able to just go see my source code, see where they are redirected and just grab the URL and bypass the whole shopping cart.

Thank you

Last edited by Steve Strickland1; 04-11-2012 at 03:52 AM.