Redirect "Keep Shopping" button on basket.aspx
Redirect "Keep Shopping" button on basket.aspx
On basket.aspx, the "Keep Shopping" button seems to act like a Back button. When the user adds a product and then clicks "Keep Shopping" it brings them back to the product they just added. Is it possible to change this button to redirect the user somewhere else? I'd like it to bring them to the site's home page.
Re: Redirect "Keep Shopping" button on basket.aspx
Edit ConLib/Basket.ascx.cs file and locate following code
and then replace it with
Code: Select all
Response.Redirect(NavigationHelper.GetLastShoppingUrl());
Code: Select all
//Response.Redirect(NavigationHelper.GetLastShoppingUrl());
Response.Redirect(NavigationHelper.GetStoreUrl());
Re: Redirect "Keep Shopping" button on basket.aspx
after making that change, I get the following error on Basket.aspx:
....ConLib\Custom\Basket.ascx.cs(251): error CS1501: No overload for method 'GetStoreUrl' takes '0' arguments
I'm running 7.0.2 b11659
....ConLib\Custom\Basket.ascx.cs(251): error CS1501: No overload for method 'GetStoreUrl' takes '0' arguments
I'm running 7.0.2 b11659
Re: Redirect "Keep Shopping" button on basket.aspx
Sorry I forgot to pass its required argument, here are the update lines
Code: Select all
//Response.Redirect(NavigationHelper.GetLastShoppingUrl());
Response.Redirect(NavigationHelper.GetStoreUrl(Page));
Re: Redirect "Keep Shopping" button on basket.aspx
perfect, thanks!