Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > E-commerce : shopping cart : how to change the url of the continue shopping button? View modes: 
User avatar
Member
Member
calais-club-internet - 5/6/2009 3:36:10 AM
   
E-commerce : shopping cart : how to change the url of the continue shopping button?
hi,

in the shopping cart page, i would like to change the url of the page when the user click on the "continue shopping button"

actually and it's the same in the e-commerce site sample, the user is redirect to home page of the site

how to do to select a different page?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/19/2009 5:12:15 AM
   
RE:E-commerce : shopping cart : how to change the url of the continue shopping button?
Hi,

The action of this button is set to return back to the previous page and not to home page. Anyway, if you want to change the location where you want redirect to, please find this file \CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartContent.ascx.cs and find there this method ButtonBackClickAction(). In this method you can change the behavior by changing this line:

// Continue shopping
UrlHelper.Redirect(this.ShoppingCartControl.PreviousPageUrl);


Best Regards,
Juraj Ondrus

User avatar
Member
Member
calais-club-internet - 5/28/2009 11:08:41 AM
   
RE:E-commerce : shopping cart : how to change the url of the continue shopping button?
Sorry to answer late

I tried the ecommerce site sample on my installation and in the virtual lab on your site.
when i click on the continue shopping button, it always display the home page of the site and not the previous page.

Can you confirm me ?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 5/29/2009 8:13:10 AM
   
RE:E-commerce : shopping cart : how to change the url of the continue shopping button?
Hello.

Unfortunately, this seems to be a bug in the current version. I'm very sorry for this inconvenience. It will be fixed in the nearest version.

Best Regards,
Radek Macalik

User avatar
Member
Member
calais-club-internet - 5/29/2009 10:17:20 AM
   
RE:E-commerce : shopping cart : how to change the url of the continue shopping button?
we have to deploy our shopping site before july.
Is there a way to correct it without waiting for the next version

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 6/13/2009 3:48:47 AM
   
RE:E-commerce : shopping cart : how to change the url of the continue shopping button?
Hello,

In a meantime you can eventually specify custom page where you want to redirect after clicking the 'Continue shopping' button into ButtonBackClickAction() method in ~\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartContent.ascx.cs file.

Best Regards,

Martin Dobsicek