![]() |
Changing Saved Shopping Cart "Clear Cart" URL Dest |
Post Reply ![]() |
Author | |||||
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() Posted: 29-August-2010 at 9:04pm |
||||
Hey guys, I have the Shopping Cart Saver enabled so when someone comes back to my site it re-adds their previous shopping cart contents. I think this was added in v4, but it may have been 3.5
Anyways, I was having an issue where a customer would arrive back at my site on some page, and then pressing clear cart would take them back to the homepage. I felt like it should keep them on the same page when they clear the cart, because they probably arrived to that specific page for a reason. I know there's an X box at the top right of the pop-up, but I felt like the clear cart button still should not take the customer off the current page. To fix this, I edited pc/CustLOb.asp... After this line:
I added these two lines:
Then, I changed this line:
...and changed tempURL to bRefURL for:
After that, I edited header.asp and added these lines to the very top of the page:
I'm not sure if the top of header.asp is the best place for this code, but it seems to be working fine on my site. Hopefully this is helpful to someone :) The end result is that clearing the saved shopping cart leaves the customer on the same page they arrived at, rather than directing them to the home page. |
|||||
![]() |
|||||
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
||||
Brett, thanks for your contribution.
Just FYI: ProductCart v4.1 already works this way: when you "clear" the cart, you stay on the same page. |
|||||
![]() |
|||||
ITistic ![]() Certified ProductCart Developers ![]() Joined: 26-January-2009 Location: FL Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
||||
Great to know all around. We've got clients using both of these solutions...
|
|||||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |