Disable automatic go-to basket page

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
krittleb
Commander (CMDR)
Commander (CMDR)
Posts: 111
Joined: Tue Jan 06, 2009 11:27 pm

Disable automatic go-to basket page

Post by krittleb » Fri Jul 24, 2009 1:48 pm

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 :wink:

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Disable automatic go-to basket page

Post by jmestep » Fri Jul 24, 2009 1:52 pm

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

krittleb
Commander (CMDR)
Commander (CMDR)
Posts: 111
Joined: Tue Jan 06, 2009 11:27 pm

Re: Disable automatic go-to basket page

Post by krittleb » Fri Jul 24, 2009 2:06 pm

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?

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

Re: Disable automatic go-to basket page

Post by mazhar » Tue Sep 01, 2009 7:39 pm

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.

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Disable automatic go-to basket page

Post by William_firefold » Wed Sep 02, 2009 6:32 am

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.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Disable automatic go-to basket page

Post by jmestep » Mon Sep 21, 2009 5:56 am

Glad to sell silk flowers also?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply