Page 1 of 1
Disable automatic go-to basket page
Posted: Fri Jul 24, 2009 1:48 pm
by krittleb
I wasn't able to find a discussion on this.
We would like to disable the function that sends customers to their shopping cart every time that they place an item there. Instead, we would like them to be able to stay on the same page after adding an item to the cart to avoid the extra clicking back-and-forth from their cart.
BTW, all of you forum moderators are great!
I'd be lost w/out you

Re: Disable automatic go-to basket page
Posted: Fri Jul 24, 2009 1:52 pm
by jmestep
If you have the minibasket in the right nav, they will not go to the basket. I don't know if it will still work if you have it there, but not visible.
Re: Disable automatic go-to basket page
Posted: Fri Jul 24, 2009 2:06 pm
by krittleb
Our mini-basket is actually already placed in our top navigation bar and we don't use the right navigation at all. Is there any other way to stop it from going to the cart?
Re: Disable automatic go-to basket page
Posted: Tue Sep 01, 2009 7:39 pm
by mazhar
In ConLIb/AddToCartLink.ascx.cs file locate following code
Code: Select all
//IF THERE IS NO REGISTERED BASKET CONTROL, WE MUST GO TO BASKET PAGE
if (!PageHelper.HasBasketControl(this.Page)) Response.Redirect(NavigationHelper.GetBasketUrl());
and change it as below
Code: Select all
//IF THERE IS NO REGISTERED BASKET CONTROL, WE MUST GO TO BASKET PAGE
//if (!PageHelper.HasBasketControl(this.Page)) Response.Redirect(NavigationHelper.GetBasketUrl());
Hopefully it will workout.
Re: Disable automatic go-to basket page
Posted: Wed Sep 02, 2009 6:32 am
by William_firefold
In our store, I made 2 conlib files for addtocartlink
1 which redirects, and 1 that doesnt. this makes it a little easier to control the behaviour in different places. Use mazhar's post for the one that does not redirect.
Re: Disable automatic go-to basket page
Posted: Mon Sep 21, 2009 5:56 am
by jmestep
Glad to sell silk flowers also?