Posts: 40
Name: Bob Davis
Location: Los Angeles, CA
|
i need to create a button in my cart that will send the visitor back to the page they came from prior to entering the cart.
for instance, someone is on a specific product page and decides to buy something. they click on "add to cart" and it adds it to the cart and takes them to my cart (my cart has to be set up this way, unfortunately). they may then click around in the cart which takes them to other cart pages.
question: if i do a simple javascript that takes them to the current page -1, it may just take them to another page in the cart. i want to take them out of the cart and back to the last product page they visited no matter how many cart pages they have bounced around in.
|