Print Page | Close Window

Return to previous page after adding to cart

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=2758
Printed Date: 27-February-2025 at 2:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Return to previous page after adding to cart
Posted By: joshs
Subject: Return to previous page after adding to cart
Date 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



Replies:
Posted By: Greg Dinger
Date 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:
http://www.greybearddesign.com/productcart/add-to-cart-confirm/ - http://www.greybearddesign.com/productcart/add-to-cart-confirm/


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: macleather
Date 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. 


Posted By: Greg Dinger
Date Posted: 27-May-2009 at 8:03pm
The ATC mod and Session Saver are both very popular.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: Greg Dinger
Date 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>


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: worldofrugs
Date 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!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net