ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Interface Magento2GroupedItem

    Reference to a sub-product owned by a GroupedProduct. Each grouped item is itself a sellable simple product with its own SKU, name, and price.

    const grouped: Magento2GroupedItem = {
    qty: 1,
    position: 1,
    product: {
    sku: "S770339-5g",
    name: "[S770339-5g] Sodiumthiophosphatedodecahydrate (5g)",
    stock_status: "IN_STOCK",
    quantity: null,
    price_range: { minimum_price: { regular_price: { value: 9.9, currency: "USD" } } }
    }
    };
    interface Magento2GroupedItem {
        qty: number;
        position: number;
        product: {
            sku: string;
            name: string;
            stock_status: string;
            quantity: null | number;
            price_range: Pick<Magento2PriceRange, "minimum_price">;
        };
    }
    Index

    Properties

    Properties

    qty: number

    Default quantity of this sub-product included when added to cart

    position: number

    Display position of the item within the grouped product

    product: {
        sku: string;
        name: string;
        stock_status: string;
        quantity: null | number;
        price_range: Pick<Magento2PriceRange, "minimum_price">;
    }

    The underlying sub-product

    Type declaration

    • sku: string

      SKU of the sub-product (typically encodes a size suffix)

    • name: string

      Display name of the sub-product

    • stock_status: string

      Stock status string (e.g. "IN_STOCK", "OUT_OF_STOCK")

    • quantity: null | number

      Stock count, if exposed by the storefront

    • price_range: Pick<Magento2PriceRange, "minimum_price">

      Sub-product price (only minimum_price is requested)