Developer forum

Forum » Ecommerce - Standard features » Cart is not available on frontend after user decline cookies

Cart is not available on frontend after user decline cookies

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi,

If user has items in cart and decline cookies using Cookie Manager the cart is not available on frontend (it does not get deleted). Although, user is able to add products to cart and no cookie gets created. Is this the expected behavior? Is there a way to prevent the cart to get removed from frontend?

https://www.screencast.com/t/P1IBeLtkvJB

BR Mario


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Mario

I actually just looked at this last week.

The Swift cookie banner sets CookieOptInLevel to None meaning no cookies are accepted when you click "Deny all". This is expected as the optin level is set to 0 = none, meaning no cookies should be set.

But the banner should probably change so "Decline all" will be "Decline" to tracking and marketing cookies, but accept functional cookies - the change will look something like below:

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Nicolai,

That did the trick. There are actually 2 places within same template that need to be changed due the layout type - banner vs both. Thanks!

BR Mario

 

You must be logged in to post in the forum