Application Load
IProductCartCounts
The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.
IProductCartCountsProduct quantity and prices for its cart position.
interfaces/orionplace/products/IProduct.tsexport interface IProductCartCounts {
// Product quantity in the cart; `null` if there is no matching item.
modal_quantity?: number | null;
// Cart-item ID; `null` if there is no matching item.
cart_id?: number | null;
// Cart-item total before discounts, by currency ID.
cart_item_price_no_discount?: Record<string, ITransformValue>;
// Cart-item total after discounts and promo code, by currency ID.
cart_item_price_after_promo?: Record<string, ITransformValue>;
// Cart quantity available for shipping: `modal_quantity` minus
// `c_can_not_ship`.
quantity?: number | null;
// Cart quantity that cannot be shipped.
c_can_not_ship?: number | null;
// Stock remaining after subtracting the cart quantity to ship; can be
// negative.
c_stock_left?: number | null;
// Cart-item amount after product discounts and before promo-code discounts,
// keyed by currency ID.
cart_item_price_before_promo?: Record<string, ITransformValue>;
// Product-discount amount for the cart item, keyed by currency ID.
regular_discount_value?: Record<string, ITransformValue>;
// Promo-code discount amount for the cart item, keyed by currency ID.
promo_discount_value?: Record<string, ITransformValue>;
// Sum of product and promo-code discounts for the cart item, keyed by
// currency ID.
discount_total?: Record<string, ITransformValue>;
}