ChemPal Documentation - v1.6.0
    Preparing search index...

    Interface LeroChemDataProduct

    The JSON held in the #product-details element's data-product dataset (and re-emitted inside the variant refresh AJAX response). Describes the currently-selected combination of a PrestaShop product.

    interface LeroChemDataProduct {
        id?: string | number;
        id_product?: string | number;
        id_product_attribute?: string | number;
        name?: string;
        price_amount?: number;
        price?: string;
        meta_description?: string;
        description?: string;
        description_short?: string;
        link?: string;
        attributes?: Record<string, LeroChemAttribute>;
    }
    Index

    Properties

    id?: string | number
    id_product?: string | number
    id_product_attribute?: string | number
    name?: string
    price_amount?: number

    Numeric price of the selected combination, e.g. 5.2.

    price?: string

    Display price with currency, e.g. "5.20 €".

    meta_description?: string

    Contains "… CAS …" for most chemicals.

    description?: string
    description_short?: string
    link?: string
    attributes?: Record<string, LeroChemAttribute>

    Selected combination's attributes, keyed by attribute group id.