cancel
Showing results for 
Search instead for 
Did you mean: 

Working with multiple carts (cart restoration on Hybris 4.5)

Former Member
0 Kudos
885

Hello,

we need to restore pending customer´s cart when he logs in again. This was discussed on https://wiki.hybris.com/display/forum/Working+with+multiple+carts , but some areas weren't completely clarified:

  • The cart is cloned/saved on session cleanup(). But where is it restored?

  • Axel´s proposed saveAndEmptySessionCart( String cartID ) and restoreSessionCart( String cartID ) are called passing "SavedCart-"+getSessionID as the cartID. Does this makes sense, since "save" and "restore" are intended to be called on different moments/sessions?

  • What about the last solution? (https://wiki.hybris.com/display/forum/Working+with+multiple+carts?focusedCommentId=205096741#comment...) It seems it could work, does it have any drawback?

Thank you,

Former Member
0 Kudos

Is it possible two add mutiple carts through the CMSCockpit as component?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It would be taking a look at the Cart Merge functionality that was introduced in 5.3 - https://wiki.hybris.com/display/release5/Cart+Merging

Former Member
0 Kudos

Hi

How to implement multiple cssociated with same user(session) in Hybris 5.3.0.2

Former Member
0 Kudos

Can someone please help me understand if we can save multiple shopping carts in one session? Thanks!

ian_matthias
Associate
Associate
0 Kudos

Not useful for hybris 4.5, but we expect that the 5.3 release (expected late September 2014) will include an OCC and Accelerator template implementation for better handling of saved cart, cart merge etc. Perhaps a look at this release (once available) will also give you some guidance here.