Populate Cart Items
amerta / amerta/theme/utilities/populate-cart-items / populateCartItems
Function: populateCartItems()
populateCartItems(
items,payload):Promise<{id?:string|null;price:number;product:string|Product;quantity:number;salePrice?:number|null;variantOptions?: {id?:string|null;option:string|ProductOption;value:string; }[] |null; }[] |null|undefined>
Defined in: amerta/theme/utilities/populate-cart-items.ts:6
Parameters
| Parameter | Type |
| ------ | ------ |
| items | { id?: string | null; price: number; product: string | Product; quantity: number; salePrice?: number | null; variantOptions?: { id?: string | null; option: string | ProductOption; value: string; }[] | null; }[] | null | undefined |
| payload | BasePayload |
Returns
Promise<{ id?: string | null; price: number; product: string | Product; quantity: number; salePrice?: number | null; variantOptions?: { id?: string | null; option: string | ProductOption; value: string; }[] | null; }[] | null | undefined>