Impersonation and Carts and CartContexts in Litium 8

I am currently working on an e-commerce solution using the Litium 8 platform and have some questions about the cart in an impersonation context.

  1. Could someone clarify how the Cart and CartContext are related in Litium 8? Specifically, how do they interact when handling user-specific data or session information?

  2. In scenarios where I need to switch between Carts or CartContexts (e.g., for impersonating a customer), how should this be handled? Are there any examples or guidelines for implementing this functionality sanely, safely and efficiently?

Any insights, documentation references, or example code snippets would be greatly appreciated.

The problem lies in switching between an impersonated user’s cart/context and the impersonator’s cart/context. The actual impersonation is already handled, but I also need to make sure the impersonator will get and be able to modify the impersonated user’s cart.

Thank you for your help!

From the trenches,
Ralf Lindberg

Litium version: 8

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.