I'm developing a Volusion site, and as a method of adding items to the cart, I want potential customers to be able to enter a product code to automatically add that product to the cart.
So, I need a form that will completely replace what's in the address bar with:
http://www.yourvolusionstore.com/ShoppingCart.asp?ProductCode=
And then I need a field where they put in the product code and the code gets added at the end...I've been browsing for an answer to this everywhere, but nothing seems to work...
Do you mean, you want to do a redirect? There are only 2 ways to change what is in the address bar:
Other than that, you can't change the URL without navigating them to the page you are changing it to. If you want to send them to that page, you can do:
If you want to change the hash, you can do
that would change the url from
http://www.yourvolusionstore.com/ShoppingCart.asp
tohttp://www.yourvolusionstore.com/ShoppingCart.asp#foo
without navigating away from the page.If you are trying to accomplish something else, please clarify that in your question.
There are several methods in Volusion to add products to the cart but this is about as basic as it gets.