Redirect Keep Shopping to last category visited?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Redirect Keep Shopping to last category visited?

Post by ZLA » Wed Jul 22, 2009 11:33 am

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Redirect Keep Shopping to last category visited?

Post by mazhar » Fri Jul 24, 2009 6:10 am

One basket page use following code to redirect to category.

Code: Select all

Category category = CategoryDataSource.Load(PageHelper.GetCategoryId(true));
Response.Redirect(category.NavigateUrl);

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: Redirect Keep Shopping to last category visited?

Post by ZLA » Fri Jul 24, 2009 6:13 am

Thanks Mazhar.

kens
Lieutenant Commander (LCDR)
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?

Post by kens » Mon Jul 18, 2011 9:07 pm

I know this is an old post, but....

Will this code work as presented in 7.04.

Thanks

Ken

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Redirect Keep Shopping to last category visited?

Post by plugables » Wed Aug 03, 2011 4:29 am

Yes it should work in 7.0.4.

Post Reply