cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Purpose of GuestCheckoutCartCleanStrategy

former_member633554
Active Participant
308

What is the purpose of this cart clean strategy?

The technical definition says this, but i find it causes more problems than i think it would help to fix.

"Removes the delivery address, delivery mode, payment info from the session cart, if the guest user moves away from checkout pages."

https://help.sap.com/doc/a4265d5ea8314eb2929e6cf6fb8e35a5/1811/en-US/de/hybris/platform/yaccelerator...

If you are a guest and you have entered your delivery address, delivery mode and are about to checkout but then need to check something else on the site, this strategy will wipe all your saved data? It makes the experience a guest quite repetitive.

Has anyone disabled this?

Accepted Solutions (1)

Accepted Solutions (1)

geffchang
Active Contributor
0 Likes

I think this is done for security purposes.

If you want to change it, override `DefaultGuestCheckoutCartCleanStrategy` with your own implementation. The alias is `guestCheckoutCartCleanStrategy`.

Answers (1)

Answers (1)

former_member633554
Active Participant
0 Likes

Ok, we have disabled this and noticed an improvement of guest users not losing the address/cart.

geffchang
Active Contributor
0 Likes

leoryan That's good to know. If you feel my answer helped or is correct, please upvote and accept it. 🙂