Function: fetchActiveCart()
fetchActiveCart(
cfg):Promise<Cart|null>
Defined in: composables/shared/utils/fetchActiveCart.ts:51
Fetches the user's existing OPEN cart, or null when none exists.
Parameters
cfg
The fetch configuration.
Returns
Promise<Cart | null>
The hydrated open cart, or null if none is found or the lookup fails.
Remarks
Uses the Services.cart SDK service:
cart.getCartssearchesOPENcarts filtered by contact/customer/company.cart.getCarthydrates the most recent matching cart bycartId. Errors are caught, logged, and surfaced as anullreturn.