Question

I have recently moved my site from a local server to a test server on-line. I noticed when I made the change, my "Add to cart" button stopped working.

also..

When a user logged into the site the login link would change to log out so that's not working either. I think this all has to do with something that I just cant seem to find.

I know if has something to do with conflicting javascript or Ajax. I really need to get this fixed please help.

Here is the link to the TEST site.

http://mackeyshotrods.com/test/store/rvca-detail

Was it helpful?

Solution

The problem lies with the fact that your request origin is http://mackeyshotrods.com but your request is going to http://**www.**mackeyshotrods.com, which is not allowed by HTTP access control. If you go to http://www.mackeyshotrods.com/test/store/rvca-detail the add to cart button will work, because the request is made from the same origin.

The variable that seems to be causing the issue is window.vmSiteurl, which is currently set to "http://www.mackeyshotrods.com/test/" but should be set to "http://mackeyshotrods.com/test/". This is probably a setting in whatever the system you're using is.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top