Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Expire Cart Contents View modes: 
User avatar
Member
Member
robert-tailor.co - 1/7/2013 8:56:43 PM
   
Expire Cart Contents
Hi,

I have setup a shopping cart for my users. We have noticed that cart contents remain persistent between browser sessions, and never seem to expire.

How can I set the user's shopping cart to expire it's contents either when the browser is closed, or after a set amount of time (e.g. 24 hours)?

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/8/2013 1:25:47 AM
   
RE:Expire Cart Contents
Hi,

What is your web.config setting for the CMSShoppingCartExpirationPeriod key? The value is set in days.

Best regards,
Juraj Ondrus

User avatar
Member
Member
robert-tailor.co - 1/8/2013 5:35:58 PM
   
RE:Expire Cart Contents
kentico_jurajo wrote: What is your web.config setting for the CMSShoppingCartExpirationPeriod key? The value is set in days.

Ah - the key did not exist at all in the Web.Config file. I've added it now and set it to 10 days.

Does the expiry time get reset each time the shopping cart is reloaded? Or is it set from the point the first item was added to the cart? So, if I add a new item after 9 days, will it be a further 10 days before the cart expires, or will it expire 1 day after adding my new item?

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/14/2013 12:54:33 AM
   
RE:Expire Cart Contents
Hi,

The dates are compared to the last update of the shopping cart - e.g. when product was added to it, the cart expiration starts from this date. With another update it is reset again.

Best regards,
Juraj Ondrus