After adding a product to the cart, if you click on Keep Shopping from the cart, it takes you to the product you just entered. Is there a way to determine the last visited category and redirect to it? If no category was last visited (say if we got to the cart directly from the home page) then I would want to redirect to the home page.
Is this simple? I didn't see anything built in to the navigation helper.
Redirect Keep Shopping to last category visited?
Re: Redirect Keep Shopping to last category visited?
One basket page use following code to redirect to category.
Code: Select all
Category category = CategoryDataSource.Load(PageHelper.GetCategoryId(true));
Response.Redirect(category.NavigateUrl);
Re: Redirect Keep Shopping to last category visited?
Thanks Mazhar.
-
- Lieutenant Commander (LCDR)
- Posts: 84
- Joined: Wed Apr 04, 2007 7:57 am
- Location: West Palm Beach, FL
- Contact:
Re: Redirect Keep Shopping to last category visited?
I know this is an old post, but....
Will this code work as presented in 7.04.
Thanks
Ken
Will this code work as presented in 7.04.
Thanks
Ken
Re: Redirect Keep Shopping to last category visited?
Yes it should work in 7.0.4.