Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Switching Shopping Cart to use SSL View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 9/4/2009 9:23:05 AM
   
Switching Shopping Cart to use SSL
I want to show the basket using http but I want to switch to use SSL once the checkout button is selected. Does anyone know how to do this.

I tried this.

this.ShoppingCartControl.ButtonNext.PostBackUrl = Request.Url.ToString().Replace("http://", "https://");

but the engine just flips back to unencrypted.

Anyone have any ideas?

Ta
Nick

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 9/11/2009 8:16:11 AM
   
RE:Switching Shopping Cart to use SSL
Hello,

Basically it should be enough to set 'Require SSL' to 'Yes' for the Shopping cart document. Please see more details here: http://devnet.kentico.com/docs/devguide/index.html?ssl_https_support.htm

Then if you reach come up to the shopping cart the HTTPS protocol should be forced.

Best Regards
Ondrej Vasil

User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 9/11/2009 8:28:07 AM
   
RE:Switching Shopping Cart to use SSL
What I want to do is only go to HTTPS when the checkout button is pressed but while a customer just views the basket or adds items if remains HTTP. Otherwise the site keeps flicking from secure to unsecure.

Nick

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 9/24/2009 7:33:17 AM
   
RE:Switching Shopping Cart to use SSL
Hello,

It would be pretty hard customization since the shopping cart is located on one specific page, which means it has only one URL. I would recommend you to set it directly to the whole shopping cart page. Is it ok with you?

Best Regards
Ondrej Vasil