Page 1 of 1
Product Accessories at top of basket page
Posted: Fri Sep 26, 2008 1:15 pm
by jmestep
I'm trying to move the product accessories to the top of the basket page instead of an intervening page. There is some kind of error, but I don't know what it is because I keep getting redirected to default.aspx. I've turned on debug and trace and tried attaching to the process in VS 2008 and checked the error log but still can't get an error message. Does anyone know another way to get an error message?
Re: Product Accessories at top of basket page
Posted: Fri Sep 26, 2008 8:17 pm
by AbleMods
Server App log on the server console will give you the error.
Or, remote console the server and redo the steps to produce the error. 9/10 times the web.config is set to throw errors to the browser if the browser is local.
Re: Product Accessories at top of basket page
Posted: Sat Sep 27, 2008 9:20 am
by jmestep
Where is this located on an XP Pro machine? I had checked the event viewer earlier and couldn't find anything.
Thanks
Re: Product Accessories at top of basket page
Posted: Sat Sep 27, 2008 12:09 pm
by afm
Judy,
First make sure than customErrors mode="Off" in web.config (it probably is unless you turned it on). Then try adding an
Application_Error event handler to global.asax. This article shows several examples,
http://support.microsoft.com/kb/306355
Re: Product Accessories at top of basket page
Posted: Sat Sep 27, 2008 12:52 pm
by jmestep
OK, thanks for the info about the event handler
Re: Product Accessories at top of basket page
Posted: Sat Sep 27, 2008 2:59 pm
by AbleMods
Right-click My Computer and click "Manage". Event Viewer is the first option.
Re: Product Accessories at top of basket page
Posted: Sat Sep 27, 2008 3:38 pm
by jmestep
That's the event viewer I checked in, but from a different path. There was nothing there. I think I'm going to take off the basket items, etc in the basket page and see if I can narrow down what the problem might be.
Thanks
Re: Product Accessories at top of basket page
Posted: Tue Sep 08, 2009 4:21 pm
by draneb
Judy,
How can we bypass the productaccessories page and go straight to the Basket page after a product is added to the cart? I do not like the extra productaccessories page at all.
Thank you very much.
Re: Product Accessories at top of basket page
Posted: Wed Sep 09, 2009 5:44 am
by jmestep
You need to take this section out of the ConLib/BuyProductDialog.ascx.cs
//Determine if there are associated Upsell products
if (basketItem.Product.GetUpsellProducts(basket).Count > 0)
{
//redirect to upsell page
string returnUrl = NavigationHelper.GetEncodedReturnUrl();
Response.Redirect("~/ProductAccessories.aspx?ProductId=" + basketItem.ProductId + "&ReturnUrl=" + returnUrl);
}