Variable OutMessageArticleInfoConst

OutMessageArticleInfo: MessageDefinition<{
    articleNumber: string;
    info: {
        alternativeArticleNumbers?: string[];
        description?: string;
        ean: string;
        heightInMm?: number;
        images?: URL[];
        lengthInMm?: number;
        media?: URL[];
        name: string;
        price: string;
        seoKeywords?: string[];
        stock?: number;
        weightInGrams?: number;
        widthInMm?: number;
    };
}> = ...

Outgoing message to send article info to the iframe. If its not possible to get the article info, the event should still be send with the info field set to null. The widget will then display the fallback faster, and not wait for the timeout.

Type declaration

  • articleNumber: string

    The shops internal article number

  • info: {
        alternativeArticleNumbers?: string[];
        description?: string;
        ean: string;
        heightInMm?: number;
        images?: URL[];
        lengthInMm?: number;
        media?: URL[];
        name: string;
        price: string;
        seoKeywords?: string[];
        stock?: number;
        weightInGrams?: number;
        widthInMm?: number;
    }

    Article info, null if not available

    • OptionalalternativeArticleNumbers?: string[]

      Alternative articles we can suggest to the customer, following the shop's internal article numbers

    • Optionaldescription?: string

      Description of the article

    • ean: string

      EAN (European Article Number) for the article

    • OptionalheightInMm?: number

      Height in mm

    • Optionalimages?: URL[]

      Product images

    • OptionallengthInMm?: number

      Length in mm

    • Optionalmedia?: URL[]

      Media files, e.g. product videos

    • name: string

      Name of the article

    • price: string

      Price of the article

    • OptionalseoKeywords?: string[]

      SEO keywords for the article

    • Optionalstock?: number

      Stock of the article, if not provided the widget assumes there is unlimited stock. If the stock is 0, the widget will display the article as out of stock. Values < 0 are not allowed.

    • OptionalweightInGrams?: number

      Weight in grams

    • OptionalwidthInMm?: number

      Width in mm