Home > widget-integration > ProcessedCartItem
ProcessedCartItem interface
Processed cart item ready for template rendering
Extends the base Product type with formatted display fields and filtered options. Used by cart templates for rendering.
Signature:
export interface ProcessedCartItem extends Record<string, unknown>
Extends: Record<string, unknown>
Example
const processedItem: ProcessedCartItem = {
...originalProduct,
price: '$19.99', // Formatted price string
options_with_values: [
{ name: 'Size', value: 'Large' },
{ name: 'Color', value: 'Blue' }
] // Filtered to exclude default options
};
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Array<{ name: string; value: string; }> |
(Optional) Filtered variant options (excludes 'Title' and 'Default Title') | ||
|
string |
Formatted price string with currency symbol |