ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Return to previous page after adding to cart
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Return to previous page after adding to cart

 Post Reply Post Reply
Author
Message
joshs View Drop Down
Newbie
Newbie


Joined: 07-April-2009
Location: Utah
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote joshs Quote  Post ReplyReply Direct Link To This Post Topic: Return to previous page after adding to cart
    Posted: 26-May-2009 at 5:35pm
I have been looking through the forum for some code or directions on how to modify my cart. I haven't seen any postings regarding this.  
Customers add product to their cart and hit the continue shopping button only to return to the home page or default.asp.
 
How do I change that so they return back to the prior page or area in the category they were previously viewing?
 
Josh
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 26-May-2009 at 5:40pm
One option is to locate the code on the viewcart.asp page that displays "continue shopping" and alter it to have a javascript back reference.
 
Another alternative is this:
Back to Top
macleather View Drop Down
Newbie
Newbie


Joined: 23-June-2008
Location: Los Angeles
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote macleather Quote  Post ReplyReply Direct Link To This Post Posted: 27-May-2009 at 7:54pm
I've been using Greg's Add to Cart Confirmation for some time now and it's works flawlessly. 
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 27-May-2009 at 8:03pm
The ATC mod and Session Saver are both very popular.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 30-May-2009 at 2:18pm
ok, I just happen to be upgrading a site where I had installed the "javascript back" code.  If you want this instead of my mod, which obviously I consider a solution, here ya go:
 
The unaltered code is around line 340 of viewcart.asp
 
<!-- gbdg altered original code <a href="default.asp"><img src="<%=RSlayout("continueshop")%>" border="0"></a> -->
     <a href="javascript: history.go(-1)"><img src="<%=RSlayout("continueshop")%>" border="0"></a>
Back to Top
worldofrugs View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24-April-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldofrugs Quote  Post ReplyReply Direct Link To This Post Posted: 05-June-2009 at 4:20pm
My 2 cent: I would go with Greg's 'Add To Cart' module....
Absolutely worth the small fee!
It gives such a nicer / more professional look to it and perfect functionality and is with his manual super easy to implement.
And that's not even mentioning the aw-some support he gives with his products!



Edited by worldofrugs - 05-June-2009 at 4:21pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.